diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | URPM.xs | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,4 @@ +- compare(): croak if used on URPM::Package object (mga#12766) - enhanced doc - kill support for kernel-*source-stripped @@ -1711,6 +1711,8 @@ Pkg_compare(pkg, evr) croak("undefined package"); char *epoch = NULL, *version, *release; + if (!strncmp(evr, "URPM::Package=", 14)) + croak("compare() must not be called with a package reference as argument; use compare_pkg() instead"); /* extract epoch and version from evr */ version = evr; |