浏览代码

rely on first update decision and don't second-guess wether an update is necessary, the second-guess doesn't have all required information

Michael van Elst 22 年之前
父节点
当前提交
d7bd5f106c
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      openpkg-tool/openpkg-build.pl
  2. 2 2
      openpkg-tool/openpkg-tool.spec

+ 2 - 2
openpkg-tool/openpkg-build.pl

@@ -1744,9 +1744,9 @@ sub make_dep ($$$$$$$) {
         } elsif ($env->{zero}) {
             target_setstatus($target,'ZERO',1);
             print "# rebuilding $target->{name} (zero)\n";
-        } elsif ($why = target_better($env, $target, $env->{installed})) {
+        } elsif (vs($target) ne vs($t)) {
             target_setstatus($target,'UPDATE',3);
-            print "# rebuilding $target->{name} ($why)\n";
+            print "# rebuilding $target->{name} (update)\n";
         } elsif (!target_suitable($t, $env->{with}, 0)) {
             target_setstatus($target,'MISMATCH',2);
             print "# rebuilding $target->{name} (parameter mismatch)\n";

+ 2 - 2
openpkg-tool/openpkg-tool.spec

@@ -32,8 +32,8 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [PLUS]
 Group:        Bootstrapping
 License:      GPL
-Version:      20030719
-Release:      20030719
+Version:      20030721
+Release:      20030721
 
 #   list of sources
 Source0:      openpkg.sh