ubuntukylin-members team mailing list archive
-
ubuntukylin-members team
-
Mailing list archive
-
Message #02929
[Branch ~ubuntukylin-members/ubuntukylin-default-settings/trunk] Rev 134: modify hooks/chroot
------------------------------------------------------------
revno: 134
committer: ShuiLu Pi <shuilupi@xxxxxxxxxxxxxxx>
branch nick: ubuntukylin-default-settings
timestamp: Thu 2014-04-03 21:15:22 +0800
message:
modify hooks/chroot
modified:
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
=== modified file 'hooks/chroot'
--- hooks/chroot 2014-04-01 08:47:07 +0000
+++ hooks/chroot 2014-04-03 13:15:22 +0000
@@ -7,10 +7,14 @@
# before it is packed into a squashfs. This is where you can apply extra tweaks
# to the live system.
-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
+#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
+
+rawlist=$(cat /usr/share/ubuntukylin-default-settings/remove-package.list)
+list=$(dpkg -l $rawlist | awk '/^i/ {print $2}')
+[ -z "$list" ] || apt-get purge --auto-remove -y $list
#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