Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=46c16ec5eb89ae4d92e1426fda772cd287bbd0d1

commit 46c16ec5eb89ae4d92e1426fda772cd287bbd0d1
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Fri Sep 23 16:12:31 2011 +0200

pspkg: silence error after upgrading a chroot

diff --git a/src/pacman-g2/ps.c b/src/pacman-g2/ps.c
index 1e57ef1..b62211b 100644
--- a/src/pacman-g2/ps.c
+++ b/src/pacman-g2/ps.c
@@ -201,6 +201,8 @@ int pspkg(int countonly)
int count = 0;

if (strcmp(config->root, "/") != 0) {
+               if (countonly)
+                       return 0;
ERR(NL, _("changing root directory is not supported when listing open 
files.\n"));
return -1;
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to