projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb90ba1
)
Group removal of orphaned packages.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Mon, 13 Feb 2012 12:07:13 +0000
(13:07 +0100)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Mon, 13 Feb 2012 12:07:13 +0000
(13:07 +0100)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
f85117d
..
209d79a
100644
(file)
--- a/
src/functions.sh
+++ b/
src/functions.sh
@@
-828,15
+828,20
@@
is_orphaned () {
# remove old and unused libraries
remove_orphaned () {
- local package
+ local package remove
apt_autoremove
+ remove=
for package in $orphaned_packages; do
if is_orphaned $package; then
- pkgrm $package
+ remove="$remove $package"
fi
done
+
+ if [ "$remove" ]; then
+ pkgrm $remove
+ fi
}
# monit it causing problems for postinst scripts