diff options
author | EuAndreh <eu@euandre.org> | 2023-03-25 18:10:17 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-25 18:10:17 -0300 |
commit | 115ca7be673dbf7626a33438a87a72f30729f8f0 (patch) | |
tree | 0dc79a93033162850124ca8dd9860dd9d928d4a4 /src | |
parent | Makefile: Put "public/" in the list of $(derived-assets) (diff) | |
download | package-repository-115ca7be673dbf7626a33438a87a72f30729f8f0.tar.gz package-repository-115ca7be673dbf7626a33438a87a72f30729f8f0.tar.xz |
src/bin/paku.in: Name .deb files with "latest" instead of commit hash
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/paku.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in index 7c19dbb..db28cc9 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -403,7 +403,13 @@ sub emit_debian() { next if $pkg->{architectures} ne 'any'; - push @debs, "\t\$(DIR)/debian/$pkg->{name}_$pkg->{version}_all.deb \\\n"; + + my $deb_name = "$pkg->{name}_" . ( + $pkg->{label} eq 'latest' ? 'latest' : $pkg->{version} + ) . "_all.deb"; + my $deb_path = "\$(DIR)/debian/$deb_name"; + + push @debs, "\t$deb_path \\\n"; my $ver = $pkg->{label} eq 'latest' ? '0.' . $pkg->{version} . '.latest' : $pkg->{version}; $ver =~ s/^v//; @@ -445,7 +451,7 @@ sub emit_debian() { \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb: \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}/DEBIAN/control dpkg-deb --build \$(DIR)/builddirs/$pkg->{name}-$pkg->{version} - \$(DIR)/debian/$pkg->{name}_$pkg->{version}_all.deb: \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb + $deb_path: \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb mkdir -p \$(\@D) cp \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb \$\@ |