[pacman-dev] CVS update of pacman-lib/scripts (makepkg)

Aaron Griffin aaron at archlinux.org
Thu Mar 29 23:24:10 EDT 2007


    Date: Thursday, March 29, 2007 @ 23:24:10
  Author: aaron
    Path: /home/cvs-pacman/pacman-lib/scripts

Modified: makepkg (1.65 -> 1.66)

From: Andrew Fyfe <andrew at neptune-one.net>
Date: Thu, 29 Mar 2007 11:11:36 +0100
Subject: [PATCH 1/1] Fix bug where makepkg can't extract .tar.Z archives.

For some reason 'tar -xf' doesn't work with .tar.Z, you need to use
'tar -xzf' to extract the archive.

Signed-off-by: Andrew Fyfe <andrew at neptune-one.net>
Signed-off-by: Aaron Griffin <aaronmgriffin at gmail.com>


---------+
 makepkg |    2 ++
 1 file changed, 2 insertions(+)


Index: pacman-lib/scripts/makepkg
diff -u pacman-lib/scripts/makepkg:1.65 pacman-lib/scripts/makepkg:1.66
--- pacman-lib/scripts/makepkg:1.65	Sun Mar 25 13:37:43 2007
+++ pacman-lib/scripts/makepkg	Thu Mar 29 23:24:09 2007
@@ -809,6 +809,8 @@
 		file_type=$(file -biz "$file")
 		unset cmd
 		case "$file_type" in
+			*application/x-tar*application/x-compress*)
+				cmd="tar -xzf $file" ;;
 			*application/x-tar*)
 				cmd="tar -xf $file" ;;
 			*application/x-zip*)




More information about the pacman-dev mailing list