OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 07-Feb-2003 14:18:47 Branch: HEAD Handle: 2003020713184600 Modified files: openpkg-src/openpkg-tool openpkg-build.pl Log: code cleanup Summary: Revision Changes Path 1.54 +3 -7 openpkg-src/openpkg-tool/openpkg-build.pl ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/openpkg-tool/openpkg-build.pl ============================================================================ $ cvs diff -u -r1.53 -r1.54 openpkg-build.pl --- openpkg-src/openpkg-tool/openpkg-build.pl 7 Feb 2003 13:11:45 -0000 1.53 +++ openpkg-src/openpkg-tool/openpkg-build.pl 7 Feb 2003 13:18:46 -0000 1.54 @@ -1145,15 +1145,11 @@ } } - if (@recs) { - if ($env->{upgrade}) { - $rec = $recs[-1]; - } else { - $rec = $recs[0]; - } - } else { + if (scalar(@recs) == 0) { return; } + + $rec = $recs[-1]; print "# source for $name is ".vsn($rec)."\n"; @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]