[pacman-dev] [patch] makepkg (actually tar) can't extract .tar.Z archives.
Found a bug last night when trying to build rcs, 'tar -xf' doesn't work when trying to extract .tar.Z archives. You need to use 'tar -xzf'. Patch attached. Andrew
From 2d6993d638a46da68c23927e609000764c4b2b0c Mon Sep 17 00:00:00 2001 From: Andrew Fyfe <andrew@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@neptune-one.net> --- scripts/makepkg | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/makepkg b/scripts/makepkg index 5afb285..92d8ab2 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -809,6 +809,8 @@ else 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*) -- 1.5.0.5
On 3/29/07, Andrew Fyfe <andrew@neptune-one.net> wrote:
Found a bug last night when trying to build rcs, 'tar -xf' doesn't work when trying to extract .tar.Z archives. You need to use 'tar -xzf'. Patch attached.
In CVS, thanks.
participants (2)
-
Aaron Griffin
-
Andrew Fyfe