X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fwanna-build;h=7993d6bd04ed592878975b4cce63102db12b3abf;hb=2864a2509a9a0f102182ffb3d5295f7563611fa0;hp=d3faced3acc6a955e3c297c9205ae88d6d87a547;hpb=6acac7413048ee7a0c90c3a3989f42554a60b10a;p=wannabuild.git diff --git a/bin/wanna-build b/bin/wanna-build index d3faced..7993d6b 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -2388,9 +2388,9 @@ 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 )) { my $change = 0; - my $tstate = {'installed' => 'Installed', 'related' => 'Installed', 'auto-not-for-us' => 'Auto-Not-For-Us'}->{$pkgs->{'status'}}; + 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) && isin( $tstate, qw); # if the package is currently current, the status is Installed, not not-for-us if ($pkg->{'state'} ne $tstate) { @@ -2410,8 +2410,15 @@ sub parse_all_v3 { $change++; } } - if (isin($pkgs->{'status'}, qw (related)) and $pkg->{'notes'} ne "related") { - $pkg->{'notes'} = "related"; + if (isin($pkgs->{'status'}, qw )) { + 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'})) { + $pkg->{'notes'} = $pkgs->{'notes'}; $change++; } if ($change) {