- 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
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.
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.
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.
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.