#564668 libapt-pkg-perl should have a function to view upgradable packes

Package:
libapt-pkg-perl
Source:
libapt-pkg-perl
Description:
Perl interface to libapt-pkg
Submitter:
William Orr
Date:
2010-01-12 06:51:04 UTC
Severity:
wishlist
#564668#5
Date:
2010-01-11 03:16:38 UTC
From:
To:
I'm working on a patch for apt-build, and it would be really nice to have a
function that returns upgradable packages. Using AptPkg::Policy works unless
apt pinning is used.

I feel like it would be a really useful function.

#564668#10
Date:
2010-01-11 12:58:26 UTC
From:
To:
In what way does it not work?  On a system with pending upgrades, the
output of the attached script may be modified by editing
/etc/apt/preferences to pin a package to the currently installed
version.

#564668#15
Date:
2010-01-11 12:58:26 UTC
From:
To:
In what way does it not work?  On a system with pending upgrades, the
output of the attached script may be modified by editing
/etc/apt/preferences to pin a package to the currently installed
version.

#564668#20
Date:
2010-01-12 06:48:50 UTC
From:
To:
I'm sorry, I was confused; it was early. What would be nice is a way
to grab the names and versions of pending package upgrades. Right now,
you have to loop through AptPkg::Cache::Package instances of each
installed package and check the current version against the version of
what $policy->candidate($pkg) returns.

#564668#25
Date:
2010-01-12 06:48:50 UTC
From:
To:
I'm sorry, I was confused; it was early. What would be nice is a way
to grab the names and versions of pending package upgrades. Right now,
you have to loop through AptPkg::Cache::Package instances of each
installed package and check the current version against the version of
what $policy->candidate($pkg) returns.