}
$pkg->{'package'} = $name;
}
+ $pkg->{'version'} ||= "";
+ $pkg->{'state'} ||= "";
my $logstr = sprintf("merge-v3 %s %s_%s", $vars->{'time'}, $name, $pkgs->{'version'}).
($pkgs->{'binnmu'} ? ";b".$pkgs->{'binnmu'} : "").
sprintf(" (%s, %s, previous: %s", $vars->{'arch'}, $vars->{'suite'}, $pkg->{'version'}//"").
/^Source:\s*(\S+)$/mi and $p->{'source'} = $1;
/^Source:\s*(\S+)\s+\((\S+)\)$/mi and $p->{'source'} = $1 and $p->{'version'} = $2;
+ # consider packages as non-existant if it's all but outdated
+ next if $p->{'arch'} eq 'all' && $srcs->{$p->{'source'}} && $srcs->{$p->{'source'}}->{'version'} && vercmp($srcs->{$p->{'source'}}->{'version'}, $p->{'version'}) > 0;
next unless $p->{'arch'} eq 'all' || $p->{'arch'} eq ${arch};
$binary->{$p->{'binary'}} = { 'version' => $p->{'version'}, 'arch' => $p->{'arch'}} unless $binary->{$p->{'binary'}} and vercmp($binary->{$p->{'binary'}}->{'version'}, $p->{'version'}) < 0;
Section: admin
Architecture: linux-any
+Package: lv2core
+Binary: lv2core
+Version: 4.0-5
+Priority: optional
+Section: sound
+Architecture: any
+
EOF
;
Architecture: all
Version: 0.196
+Package: lv2core
+Priority: optional
+Section: sound
+Installed-Size: 112
+Architecture: all
+Version: 3.0-3
+
EOF
;
'depends' => 'debhelper (>= 7), docbook-xsl, ldp-docbook-xsl (>= 0.0.20040321-0.1), xsltproc, dpkg-dev (>= 1.13.19), dblatex, debconf | debconf-2.0, po-debconf, po4a',
'conflicts' => 'dash'
},
+ 'lv2core' => {
+ 'priority' => 'optional',
+ 'status' => 'uncompiled',
+ 'version' => '4.0-5',
+ 'binary' => [
+ 'lv2core'
+ ],
+ 'name' => 'lv2core',
+ 'section' => 'sound'
+ },
'_binary' => {
'e2fsprogs' => {'version' => '1.41.11-1', 'arch' => 'i386'},
'bash' => {'version' => '4.1-3', 'arch' => 'i386'},