]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wanna-build
fix previous commit: dont set values already set on the database
[wannabuild.git] / bin / wanna-build
index 7993d6bd04ed592878975b4cce63102db12b3abf..0908b927db4db90d2f4e4503d0271cf71fb7965b 100755 (executable)
@@ -2388,7 +2388,7 @@ sub parse_all_v3 {
         if (isin($pkgs->{'status'}, qw (installed related)) && $pkgs->{'version'} eq $pkg->{'version'} && ($pkgs->{'binnmu'}//0) < int($pkg->{'binary_nmu_version'}//0)) {
                 $pkgs->{'status'} = 'out-of-date';
         }
-        if (isin($pkgs->{'status'}, qw <installed related auto-not-for-us >)) {
+        if (isin($pkgs->{'status'}, qw <installed related auto-not-for-us not-for-us>)) {
             my $change = 0;
             my $tstate = {'installed' => 'Installed', 'related' => 'Installed', 'auto-not-for-us' => 'Auto-Not-For-Us', 'not-for-us' => 'Auto-Not-For-Us'}->{$pkgs->{'status'}};
             next if isin( $pkg->{'state'}, qw<Not-For-Us Failed Failed-Removed Dep-Wait Dep-Wait-Removed>) && isin( $tstate, qw<Auto-Not-For-Us>);
@@ -2411,13 +2411,13 @@ sub parse_all_v3 {
                 }
             }
             if (isin($pkgs->{'status'}, qw <related not-for-us>)) {
-                my $tnotes = {'related' => 'related', 'not-for-us' => 'Packages-arch-specific'}->{$pkgs->{'status'}};
+                my $tnotes = {'related' => 'related', 'not-for-us' => 'packages-arch-specific'}->{$pkgs->{'status'}};
                 if ($pkg->{'notes'} && $pkg->{'notes'} ne $tnotes) {
                     $pkg->{'notes'} = $tnotes;
                     $change++;
                 }
             }
-            if ($pkgs->{'notes'} && ($pkg->{'notes'}//"" ne $pkgs->{'notes'})) {
+            if ($pkgs->{'notes'} && (($pkg->{'notes'}//"") ne $pkgs->{'notes'})) {
                 $pkg->{'notes'} = $pkgs->{'notes'};
                 $change++;
             }