← Back to team overview

ubuntukylin-members team mailing list archive

[Branch ~ubuntukylin-members/ubuntukylin-default-settings/trunk] Rev 125: add the judgment of deleting packages

 

------------------------------------------------------------
revno: 125
committer: ShuiLu Pi <shuilupi@xxxxxxxxxxxxxxx>
branch nick: ubuntukylin-default-settings
timestamp: Tue 2014-04-01 10:52:32 +0800
message:
  add the judgment of deleting packages
added:
  debian/remove-package.list
modified:
  debian/rules*
  debian/ubuntukylin-default-settings.install
  hooks/chroot


--
lp:ubuntukylin-default-settings
https://code.launchpad.net/~ubuntukylin-members/ubuntukylin-default-settings/trunk

Your team Ubuntu Kylin Members is subscribed to branch lp:ubuntukylin-default-settings.
To unsubscribe from this branch go to https://code.launchpad.net/~ubuntukylin-members/ubuntukylin-default-settings/trunk/+edit-subscription
=== added file 'debian/remove-package.list'
--- debian/remove-package.list	1970-01-01 00:00:00 +0000
+++ debian/remove-package.list	2014-04-01 02:52:32 +0000
@@ -0,0 +1,42 @@
+ibus 
+ibus-gtk 
+ibus-gtk3 
+python-ibus 
+libopencc1 
+ubuntu-wallpapers 
+ubuntu-wallpapers-trusty 
+indicator-keyboard 
+libtcl8.6
+totem 
+totem-common 
+libtotem0 
+gir1.2-totem-plparser-1.0
+language-pack-de 
+language-pack-es 
+language-pack-pt 
+firefox-locale-de 
+firefox-locale-es 
+firefox-locale-pt
+example-content 
+guile-2.0-libs 
+liblouis-data 
+lintian 
+landscape-client-ui-install
+fonts-freefont-ttf 
+fonts-kacst 
+fonts-kacst-one 
+fonts-lao 
+fonts-nanum 
+fonts-takao-pgothic 
+fonts-tlwg-kinnari 
+fonts-tlwg-loma 
+fonts-tlwg-mono 
+fonts-tlwg-norasi 
+fonts-tlwg-purisa 
+fonts-tlwg-sawasdee 
+fonts-tlwg-typewriter 
+fonts-tlwg-typist 
+fonts-tlwg-typo 
+fonts-tlwg-umpush 
+fonts-tlwg-waree 
+fonts-thai-tlwg

=== modified file 'debian/rules' (properties changed: -x to +x)
=== modified file 'debian/ubuntukylin-default-settings.install'
--- debian/ubuntukylin-default-settings.install	2014-03-23 03:48:39 +0000
+++ debian/ubuntukylin-default-settings.install	2014-04-01 02:52:32 +0000
@@ -2,4 +2,5 @@
 debian/ubuntukylin.list /etc/apt/sources.list.d/
 debian/ubuntukylin-release /etc/
 debian/default /etc/chromium-browser/
+debian/remove-package.list /usr/share/ubuntukylin-default-settings/
 icons/UbuntuLogo.png /usr/share/unity-control-center/ui/

=== modified file 'hooks/chroot'
--- hooks/chroot	2014-03-31 02:43:06 +0000
+++ hooks/chroot	2014-04-01 02:52:32 +0000
@@ -7,12 +7,17 @@
 # before it is packed into a squashfs. This is where you can apply extra tweaks
 # to the live system.
 
-apt-get purge --auto-remove -y ibus ibus-gtk ibus-gtk3 python-ibus libopencc1 ubuntu-wallpapers ubuntu-wallpapers-trusty indicator-keyboard libtcl8.6 
+cat /usr/share/ubuntukylin-default-settings/remove-package.list | while read line
+do
+    [ `dpkg -l $line | grep -c "ii"` != 0 ] && apt-get purge --auto-remove -y $line
+done
+
+#apt-get purge --auto-remove -y ibus ibus-gtk ibus-gtk3 python-ibus libopencc1 ubuntu-wallpapers ubuntu-wallpapers-trusty indicator-keyboard libtcl8.6 
 #apt-get purge --auto-remove -y totem totem-common gstreamer1.0-clutter libtotem0 gir1.2-totem-plparser-1.0 libreoffice-help-en-us
-apt-get purge --auto-remove -y totem totem-common libtotem0 gir1.2-totem-plparser-1.0
-apt-get purge --auto-remove -y language-pack-de language-pack-es language-pack-pt firefox-locale-de firefox-locale-es firefox-locale-pt
-apt-get purge --auto-remove -y example-content guile-2.0-libs liblouis-data lintian landscape-client-ui-install
-apt-get purge --auto-remove -y fonts-freefont-ttf fonts-kacst fonts-kacst-one fonts-lao fonts-nanum fonts-takao-pgothic fonts-tlwg-kinnari fonts-tlwg-loma fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree fonts-thai-tlwg 
+#apt-get purge --auto-remove -y totem totem-common libtotem0 gir1.2-totem-plparser-1.0
+#apt-get purge --auto-remove -y language-pack-de language-pack-es language-pack-pt firefox-locale-de firefox-locale-es firefox-locale-pt
+#apt-get purge --auto-remove -y example-content guile-2.0-libs liblouis-data lintian landscape-client-ui-install
+#apt-get purge --auto-remove -y fonts-freefont-ttf fonts-kacst fonts-kacst-one fonts-lao fonts-nanum fonts-takao-pgothic fonts-tlwg-kinnari fonts-tlwg-loma fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree fonts-thai-tlwg 
 #mkdir -p /etc/skel/桌面
 #cp /usr/share/applications/firefox.desktop /etc/skel/桌面/