tags 341701 patch
thanks
Bill Allombert writes:
Hi,
Thanks a lot, it seems fine.
By any chance do you have an idea how to fix bug #341701 ?
The problem is the standard shell returns exit status of the last
command as the status of pipe. You can obey this either by avoiding the
pipe (i.e. running only dpkg-query and do filtering directly in
update-menus) or by using non-POSIX `pipefail' option (so you need to
make sure shell supports it).
A simple patch for the second solution:
In read_packages() just after initialization of pkgs variable add the
following line:
pkgs = "exec /bin/bash -o pipefail -c \"" + pkgs + "\"";
Of course you need to check return value of pclose() call, e.g.:
if (pclose(status)) {
exit (1);
}
Regards,
robert
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]