[pacman-dev] [PATCH] Modify bacman to use .pkg.tar.gz suffix
From a566684aeab88d9e983c5a57ee7c7ecbf775e478 Mon Sep 17 00:00:00 2001
From: Nagy Gabor
On Tue, Jul 1, 2008 at 11:49 AM, Nagy Gabor
From a566684aeab88d9e983c5a57ee7c7ecbf775e478 Mon Sep 17 00:00:00 2001 From: Nagy Gabor
Date: Tue, 1 Jul 2008 18:39:04 +0200 Subject: [PATCH] Modify bacman to use .pkg.tar.gz suffix The old one created foo-1.0-1.tar.gz named package file.
Signed-off-by: Nagy Gabor
--- contrib/bacman | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/bacman b/contrib/bacman index 410482f..a973823 100755 --- a/contrib/bacman +++ b/contrib/bacman @@ -265,7 +265,7 @@ chmod 644 $work_dir/{.PKGINFO,.CHANGELOG,.INSTALL} 2> /dev/null echo "Generating the package..."
ret=0 -bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch.tar.gz" $(ls -A) || ret=$? +bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch.pkg.tar.gz" $(ls -A) || ret=$? if [ $ret -ne 0 ]; then echo "ERROR: unable to write package to $pkg_dest" echo " Maybe the disk is full or you do not have write access"
To be more proper, it'd probably better to source makepkg.conf and use $PKG_EXT
From c86b422e4e56b12fe664d09e60883ae9304a843b Mon Sep 17 00:00:00 2001
From: Nagy Gabor
Nagy Gabor wrote:
-bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch.tar.gz" $(ls -A) || ret=$? +bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch$pkg_ext" $(ls -A) || ret=$?
Wow. I tested this script many, many times and I can't believe I missed that!
participants (3)
-
Aaron Griffin
-
Allan McRae
-
Nagy Gabor