FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 07-01-2008, 04:49 PM
Nagy Gabor
 
Default Modify bacman to use .pkg.tar.gz suffix

>From a566684aeab88d9e983c5a57ee7c7ecbf775e478 Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba@bibl.u-szeged.hu>
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 <ngaba@bibl.u-szeged.hu>
---
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"
--
1.5.6.1

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 
Old 07-01-2008, 05:03 PM
"Aaron Griffin"
 
Default Modify bacman to use .pkg.tar.gz suffix

On Tue, Jul 1, 2008 at 11:49 AM, Nagy Gabor <ngaba@bibl.u-szeged.hu> wrote:
> >From a566684aeab88d9e983c5a57ee7c7ecbf775e478 Mon Sep 17 00:00:00 2001
> From: Nagy Gabor <ngaba@bibl.u-szeged.hu>
> 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 <ngaba@bibl.u-szeged.hu>
> ---
> 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

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 
Old 07-02-2008, 09:54 PM
Carlo Bersani
 
Default Modify bacman to use .pkg.tar.gz suffix

We take the extension of the target package from makepkg.conf
Hope this works, thank you all for the git cheat sheet

Signed-off-by: Carlo Bersani <carlocci@gmail.com>
---
contrib/bacman | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/bacman b/contrib/bacman
index 410482f..063fdd7 100755
--- a/contrib/bacman
+++ b/contrib/bacman
@@ -88,6 +88,7 @@ fi
pkg_arch=${CARCH:-'unknown'}
pkg_dest="${PKGDEST:-$PWD}"
pkg_pkger=${PACKAGER:-'Unknown Packager'}
+pkg_ext=${PKGEXT:-'.pkg.tar.gz'}

pkg_name="$1"
pkg_dir="$(echo $pac_db/$pkg_name-[0-9]*)"
@@ -265,7 +266,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_ext" $(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"
@@ -279,4 +280,4 @@ echo Done

exit 0

-# vim: set ts=2 sw=2 noet:
No newline at end of file
+# vim: set ts=2 sw=2 noet:
--
1.5.6.1


_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 

Thread Tools




All times are GMT. The time now is 02:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org