Merge lp:~shnatsel/elementaryos/ebuild-deborphan into lp:elementaryos/0.1-jupiter

Proposed by Sergey "Shnatsel" Davidoff
Status: Merged
Approved by: Sergey "Shnatsel" Davidoff
Approved revision: 90
Merged at revision: 119
Proposed branch: lp:~shnatsel/elementaryos/ebuild-deborphan
Merge into: lp:elementaryos/0.1-jupiter
Prerequisite: lp:~shnatsel/elementaryos/enchanced-kernel-handling-ebuild
Diff against target: 28 lines (+11/-0)
1 file modified
conf.sh (+11/-0)
To merge this branch: bzr merge lp:~shnatsel/elementaryos/ebuild-deborphan
Reviewer Review Type Date Requested Status
Sergey "Shnatsel" Davidoff (community) Approve
Review via email: mp+56904@code.launchpad.net

Description of the change

Added cleanup of orphaned packages with deborphan

To post a comment you must log in.
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

OK it's time to merge this thing.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'conf.sh'
2--- conf.sh 2011-04-08 09:29:22 +0000
3+++ conf.sh 2011-04-08 09:29:22 +0000
4@@ -211,6 +211,9 @@
5 apt-get install -f -y --no-install-recommends --allow-unauthenticated abiword abiword-plugin-grammar bcmwl-kernel-source cups contractor dexter dockmanager docky elementary-theme elementary-icon-theme elementary-wallpapers gdebi gdebi-core gloobus-preview gnumeric indicator-applet-complete indicator-datetime libgl1-mesa-dri-experimental midori nautilus ntp purple postler plymouth-theme-elementary-logo preload telepathy-salut ttf-droid ttf-unifont ttf-dejavu zeitgeist zeitgeist-fts-extension
6 # Should be replaced by a simple 'apt-get install elementary-desktop'
7
8+# Install deborphan - we'll need it later for cleanup
9+apt-get install -f -y --no-install-recommends --allow-unauthenticated deborphan
10+
11 # Compiz
12 $setconf int /apps/compiz/general/screen0/options/hsize 2
13 $setconf int /apps/compiz/general/screen0/options/vsize 2
14@@ -346,6 +349,14 @@
15 gzip -dc /initrd.gz | sudo lzma -7 > /initrd.lz
16 rm /initrd.gz
17
18+# Remove orphaned packages
19+while [ -n "$(deborphan)" ]; do
20+ aptitude purge $(deborphan)
21+done
22+
23+# Remove deborphan - we don't need it in the image
24+apt-get remove -f -y --purge deborphan
25+
26 # Clean Up
27 apt-get autoclean -f
28 apt-get clean -f -y

Subscribers

People subscribed via source and target branches