freebsd-ports/sysutils/portupgrade-devel/files/patch-portupgrade
Akinori MUSHA be40c29b61 Fix a bug with -P when there are more than one binary package file for
a package to install or upgrade.

PR:		ports/68598
Submitted by:	Victor Prylipko <vic@liniya.ru>
Bug traced by:	Andrew Bliznak <andrew@ort.lviv.net>
2004-07-06 19:32:53 +00:00

16 lines
497 B
Text

Index: bin/portupgrade
===================================================================
RCS file: /home/cvs/pkgtools/bin/portupgrade,v
retrieving revision 1.226
diff -u -2 -r1.226 portupgrade
--- bin/portupgrade 30 Jun 2004 16:51:46 -0000 1.226
+++ bin/portupgrade 6 Jul 2004 19:18:10 -0000
@@ -1691,5 +1691,7 @@
end
- latest_pkg, pkgfile = *pkglist.max { |pkg, file| pkg }
+ latest_pkg, pkgfile = *pkglist.max { |(pkg1, file1), (pkg2, file2)|
+ pkg1 <=> pkg2
+ }
if latest_pkg