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 >)) {
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<Not-For-Us Failed Failed-Removed Dep-Wait Dep-Wait-Removed>) && isin( $tstate, qw<Auto-Not-For-Us>);
# if the package is currently current, the status is Installed, not not-for-us
if ($pkg->{'state'} ne $tstate) {
$change++;
}
}
- if (isin($pkgs->{'status'}, qw (related)) and $pkg->{'notes'} ne "related") {
- $pkg->{'notes'} = "related";
+ if (isin($pkgs->{'status'}, qw <related not-for-us>)) {
+ 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) {
next;
}
for my $bin (@{$srcs->{$k}->{'binary'}}) {
+ $srcs->{$k}->{'pas'} = 1 if pasignore($pas->{$bin}, $arch);
next if pasignore($pas->{$bin}, $arch);
next if $binary->{$bin} and $binary->{$bin}->{'arch'} eq 'all';
next SRCS;
}
- $srcs->{$k}->{'status'} = 'not-for-us';
+ if ($srcs->{$k}->{'pas'}) {
+ $srcs->{$k}->{'status'} = 'not-for-us';
+ $srcs->{$k}->{'notes'} = 'packages-arch-specific';
+ } else {
+ $srcs->{$k}->{'status'} = 'auto-not-for-us';
+ $srcs->{$k}->{'notes'} = 'overwritten-by-arch-all';
+ }
+ delete $srcs->{$k}->{'pas'};
}
$srcs->{'_binary'} = $binary;
local($/) = "\n";
Section: sound
Architecture: any
+Package: haskell-haxr
+Binary: libghc6-haxr-prof
+Version: 3000.2.1-2
+Priority: extra
+Section: haskell
+Architecture: any
+
+Package: haskall-dummy
+Binary: libghc6-haxr-prof
+Version: 1:3
+Priority: extra
+Section: haskell
+Architecture: all
+
EOF
;
Architecture: all
Version: 3.0-3
+Package: libghc6-haxr-prof
+Version: 1:3
+Priority: extra
+Section: haskell
+Architecture: all
+
EOF
;
'pbuilder' => {
'priority' => 'extra',
'status' => 'not-for-us',
+ 'notes' => 'packages-arch-specific',
'version' => '0.196',
'binary' => [
'pbuilder',
'name' => 'lv2core',
'section' => 'sound'
},
+ 'haskell-haxr' => {
+ 'priority' => 'extra',
+ 'status' => 'auto-not-for-us',
+ 'notes' => 'arch-all',
+ 'version' => '3000.2.1-2',
+ 'binary' => [
+ 'libghc6-haxr-prof'
+ ],
+ 'name' => 'haskell-haxr',
+ 'section' => 'haskell'
+ },
'_binary' => {
'e2fsprogs' => {'version' => '1.41.11-1', 'arch' => 'i386'},
'bash' => {'version' => '4.1-3', 'arch' => 'i386'},
'bash-static' => {'version' => '4.1-3', 'arch' => 'i386'},
'all' => {'version' => '4.1-3', 'arch' => 'all'},
'pbuilder' => { 'arch' => 'all', 'version' => '0.196' },
+ 'libghc6-haxr-prof' => { 'arch' => 'all', 'version' => '1:3' },
},
}, 'reading packages');