On Mon, Jan 11, 2010 at 7:58 AM, Brendan O'Dea <b...@debian.org> wrote:
> On Mon, Jan 11, 2010 at 2:16 PM, William Orr <w...@worrbase.com> wrote:
>> 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.
>
> 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.
>

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.

-- 
-Will Orr



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to