From c6e2588fcbfabeb1a2c301f152430174647a212d Mon Sep 17 00:00:00 2001
From: Andreas Barth <aba@not.so.argh.org>
Date: Sat, 9 Apr 2011 15:44:47 +0000
Subject: [PATCH] fix previous commit: dont set values already set on the
 database

---
 bin/wanna-build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/wanna-build b/bin/wanna-build
index 9b39f76..0908b92 100755
--- a/bin/wanna-build
+++ b/bin/wanna-build
@@ -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++;
             }
-- 
2.39.5