Browse Source

upgrade command line targets when possible

Michael van Elst 23 years ago
parent
commit
929f363d32
1 changed files with 7 additions and 0 deletions
  1. 7 0
      openpkg-tool/openpkg-build.pl

+ 7 - 0
openpkg-tool/openpkg-build.pl

@@ -1320,6 +1320,13 @@ sub target_better ($$$) {
         return 'exact';
     }
     #
+    # if target is goal
+    # always update if installed version is older than repository
+    #
+    if ($target->{GOAL} && !grep { vcmp($vs, $_) <= 0; } keys %$vmap) {
+        return 'goal';
+    }
+    #
     # if -U then
     # always update if installed version is older than repository
     #