aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.pm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-07-04 15:53:30 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-07-04 15:53:30 +0000
commit3d1a4c165264b3d9876fb84cca2ce6335c264b97 (patch)
tree4eb0b2b6087e1ee2eaf84c1a989064f9428d9005 /URPM.pm
parentca1219cb28ad7ef95073a654bb1b103c9e1b69b2 (diff)
downloadperl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.gz
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.bz2
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.xz
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.zip
- add Pkg_is_platform_compat() and Urpm_platformscore() coming with rpm 4.4.8
Diffstat (limited to 'URPM.pm')
-rw-r--r--URPM.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index 3292ea4..c88bf3c 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -562,6 +562,12 @@ Returns whether this package is compatible with the current machine's
architecture. 0 means not compatible. The lower the result is, the preferred
the package is.
+=item $package->is_platform_compat()
+
+Return whether this package is compatible with the current machine's
+platform configuration (/etc/rpm/platform). 0 mean not compatible.
+The lower the result is the preferred the package is.
+
=item $package->license()
=item $package->name()
@@ -751,6 +757,11 @@ Sets rpm verbosity level. $level is an integer between 2 (RPMMESS_CRIT) and 7
=item rpmErrorWriteTo($fd)
+=item platformscore($platform)
+
+Return the score of $platform according computer's configuration.
+0 mean not compatible, lower is prefered.
+
=back
=head1 COPYRIGHT