aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-22 15:17:44 -0300
committerEuAndreh <eu@euandre.org>2023-03-22 15:18:40 -0300
commit57cbb12d44adf700068215b60b9c3a0b9fb3e363 (patch)
tree143282b139af6705417632b5fd718fae86639ac1 /src
parenttests/vm-check.sh: Add markers of what is running where (diff)
downloadpackage-repository-57cbb12d44adf700068215b60b9c3a0b9fb3e363.tar.gz
package-repository-57cbb12d44adf700068215b60b9c3a0b9fb3e363.tar.xz
src/bin/paku: Get Base64 from paku.lock instead of calculating it
Diffstat (limited to '')
-rwxr-xr-xsrc/bin/paku10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/bin/paku b/src/bin/paku
index 41b420f..622f8ef 100755
--- a/src/bin/paku
+++ b/src/bin/paku
@@ -6,7 +6,6 @@ use feature 'signatures';
no warnings ('experimental::signatures');
use Getopt::Std ();
use JSON ();
-use MIME::Base64 ();
use File::Basename ();
use Digest::MD5 ();
use Digest::SHA ();
@@ -372,9 +371,6 @@ sub emit_debian() {
my $ver = $pkg->{label} eq 'latest' ? '0.' . $pkg->{version} . '.latest' : $pkg->{version};
$ver =~ s/^v//;
- my $maintainer_b64 = MIME::Base64::encode_base64 $pkg->{maintainer}, '';
- my $desc_b64 = MIME::Base64::encode_base64 $pkg->{description}, '';
- my $long_desc_b64 = MIME::Base64::encode_base64 $pkg->{'long-description'}, '';
push @targets, <<~EOF;
\$(DIR)/debian-destdir/$pkg->{name}-$pkg->{version}/DEBIAN: \$(DIR)/checkouts/$pkg->{name}-$pkg->{version}
@@ -397,14 +393,14 @@ sub emit_debian() {
printf 'Essential: no\\n' >> \$\@
printf 'Maintainer: ' >> \$\@
- printf '$maintainer_b64' | base64 -d >> \$\@
+ printf '$pkg->{"maintainer-b64"}' | base64 -d >> \$\@
printf '\\n' >> \$\@
printf 'Description: ' >> \$\@
- printf '$desc_b64' | base64 -d >> \$\@
+ printf '$pkg->{"description-b64"}' | base64 -d >> \$\@
printf '\\n' >> \$\@
- printf '$long_desc_b64' | \\
+ printf '$pkg->{'long-description-b64'}' | \\
base64 -d | \\
sed 's|^\$\$|.|' | \\
sed 's|^| |' >> \$\@