diff options
author | Allan McRae <allan@archlinux.org> | 2013-06-18 05:59:18 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-06-18 05:59:18 +0200 |
commit | 71328479f394e517ab7caeb168182c00b1704842 (patch) | |
tree | 4f353d84d31f051412b52b5f6fca29567c2cdb36 /contrib/checkupdates.sh.in | |
parent | b7f8f5d26a373e72fa49a6376307ee79935a035d (diff) | |
parent | 5a0c659a16831e1d4c62698352135122cfbb87e4 (diff) | |
download | pacman-71328479f394e517ab7caeb168182c00b1704842.tar.gz pacman-71328479f394e517ab7caeb168182c00b1704842.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'contrib/checkupdates.sh.in')
-rw-r--r-- | contrib/checkupdates.sh.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/checkupdates.sh.in b/contrib/checkupdates.sh.in index b41dfa03..48ceff94 100644 --- a/contrib/checkupdates.sh.in +++ b/contrib/checkupdates.sh.in @@ -19,25 +19,25 @@ # if (( $# > 0 )); then - echo "checkupdate: Safely print a list of pending updates." + echo "checkupdates: Safely print a list of pending updates." echo "Use: checkupdates" - echo "Export the 'CHECKUPDATE_DB' variable to change the path of the temporary database." + echo "Export the 'CHECKUPDATES_DB' variable to change the path of the temporary database." exit 0 fi -if [[ -z $CHECKUPDATE_DB ]]; then - CHECKUPDATE_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/" +if [[ -z $CHECKUPDATES_DB ]]; then + CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/" fi -trap 'rm -f $CHECKUPDATE_DB/db.lck' INT TERM EXIT +trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT DBPath="${DBPath:-@localstatedir@/lib/pacman/}" eval $(awk -F' *= *' '$1 ~ /DBPath/ { print $1 "=" $2 }' @sysconfdir@/pacman.conf) -mkdir -p "$CHECKUPDATE_DB" -ln -s "${DBPath}/local" "$CHECKUPDATE_DB" &> /dev/null -fakeroot pacman -Sy --dbpath "$CHECKUPDATE_DB" --logfile /dev/null &> /dev/null -pacman -Qqu --dbpath "$CHECKUPDATE_DB" 2> /dev/null +mkdir -p "$CHECKUPDATES_DB" +ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null +fakeroot pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null +pacman -Qqu --dbpath "$CHECKUPDATES_DB" 2> /dev/null exit 0 |