[pacman-dev] [PATCH] contrib/checkupdates: do not log

Allan McRae allan at archlinux.org
Mon Apr 8 08:01:18 EDT 2013


Avoid the log file filling up with "[PACMAN] synchronizing package lists".

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 contrib/checkupdates.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/checkupdates.sh.in b/contrib/checkupdates.sh.in
index 15950e1..9244d85 100644
--- a/contrib/checkupdates.sh.in
+++ b/contrib/checkupdates.sh.in
@@ -36,7 +36,7 @@ eval $(awk -F' *= *' '$1 ~ /DBPath/ { print $1 "=" $2 }' /etc/pacman.conf)
 
 mkdir -p "$CHECKUPDATE_DB"
 ln -s "${DBPath}/local" "$CHECKUPDATE_DB" &> /dev/null
-fakeroot pacman -Sy --dbpath "$CHECKUPDATE_DB" &> /dev/null
+fakeroot pacman -Sy --dbpath "$CHECKUPDATE_DB" --logfile /dev/null &> /dev/null
 pacman -Qqu --dbpath "$CHECKUPDATE_DB" 2> /dev/null
 
 exit 0
-- 
1.8.2



More information about the pacman-dev mailing list