From 7a1b1f8bd649113e99ecef0489e2f2194e283d1e Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:33 +0000 Subject: Dselect support Author: jgg Date: 1998-11-22 23:37:03 GMT Dselect support --- dselect/update | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 dselect/update (limited to 'dselect/update') diff --git a/dselect/update b/dselect/update new file mode 100755 index 000000000..ca507c4c6 --- /dev/null +++ b/dselect/update @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +# Get the configuration from /etc/apt/apt.conf +OPTS="-f" +APTGET="/usr/bin/apt-get" +APTCACHE="/usr/bin/apt-cache" +DPKG="/usr/bin/dpkg" +CACHEDIR="/var/cache/apt" +RES=`apt-config shell OPTS DSelect::UpdateOptions \ + DPKG Dir::Bin::dpkg APTGET Dir::Bin::apt-get \ + APTCACHE Dir::Bin::apt-cache CACHEDIR Dir::Cache` +eval $RES + +$APTGET $OPTS update + +echo "Merging Available information" +rm -f /var/cache/apt/available +$APTCACHE dumpavail > $CACHEDIR/available +$DPKG --update-avail $CACHEDIR/available +rm -f $CACHEDIR/available +exit 0 -- cgit v1.2.3