summaryrefslogtreecommitdiff
path: root/debian/apt.auto-removal.sh
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 11:31:29 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 11:31:29 +0100
commit0b9f0e9bba678c3e5327a260faee96ea3a71df79 (patch)
treee2c6c0329ff310ae99e6d27fe19dc141715e048e /debian/apt.auto-removal.sh
parentc1719bdbe919ae5814cbcfe5afc3f04d3ccd7efb (diff)
add testcase for the autoremove feature
Diffstat (limited to 'debian/apt.auto-removal.sh')
-rw-r--r--debian/apt.auto-removal.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh
index 2094372df..e1b1c92d4 100644
--- a/debian/apt.auto-removal.sh
+++ b/debian/apt.auto-removal.sh
@@ -18,7 +18,6 @@ set -e
# will overwrite the db when it exits.
-#
eval $(apt-config shell APT_CONF_D Dir::Etc::parts/d)
test -n "${APT_CONF_D}" || APT_CONF_D="/etc/apt/apt.conf.d"
config_file=${APT_CONF_D}/01autoremove-kernels
@@ -39,7 +38,7 @@ version_test_gt ()
return "$?"
}
-list=$($DPKG -l 'linux-image-[0-9]*'|awk '/^ii/ { print $2 }' | sed -e's/linux-image-//')
+list=$(${DPKG} -l 'linux-image-[0-9]*'|awk '/^ii/ { print $2 }' | sed -e's/linux-image-//')
latest_version=""
for i in $list; do