Commit 95f5e3ac authored by Dietmar Maurer's avatar Dietmar Maurer

apt: fix changelog url

parent 245bbd7c
...@@ -77,10 +77,12 @@ my $assemble_pkginfo = sub { ...@@ -77,10 +77,12 @@ my $assemble_pkginfo = sub {
my $comp = $pkgfile->{Component}; my $comp = $pkgfile->{Component};
if ($origin && $comp) { if ($origin && $comp) {
my $pkgver = $candidate_ver->{VerStr}; my $pkgver = $candidate_ver->{VerStr};
my $firstLetter = substr($pkgname, 0, 1); $pkgver =~ s/^\d+://; # strip epoch
my $srcpkg = $info->{SourcePkg} || $pkgname;
my $firstLetter = substr($srcpkg, 0, 1);
if ($origin eq 'Debian') { if ($origin eq 'Debian') {
$changelog_url = "http://packages.debian.org/changelogs/pool/main/" . $changelog_url = "http://packages.debian.org/changelogs/pool/main/" .
"$firstLetter/$pkgname/${pkgname}_$pkgver/changelog"; "$firstLetter/$srcpkg/${srcpkg}_$pkgver/changelog";
} }
last; last;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment