[Piuparts-devel] Bug#566672: Bug#566672:

Cleto Martin Angelina cleto.martin at gmail.com
Thu Jun 10 07:42:31 UTC 2010


tags 566672 + patch
thanks.

Hi! Sorry about my lag :-)...

I think the attached patch solves this problem. I have tested it with
two packages: first one is known by apt-get previously and upgrade
test is done for it. The other package is not known, so piuparts
informs about that the upgrade test is not possible.

Mainly, the patch is based on the documentation of apt-cache. Its
manual page say that "apt-cache returns zero on normal operation,
decimal 100 on error". With all this, I think it is enough to check if
the return code status is non-zero. I don't know if I have missed
something, so I am cautious saying this :-).

Cheers,
 Cleto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt_knows_patch.diff
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20100610/828672fb/attachment.bin>


More information about the Piuparts-devel mailing list