From 656c895ca4a169ec933419ab9cea1897f08799e8 Mon Sep 17 00:00:00 2001
From: Chantry Xavier <shiningxc@gmail.com>
Date: Thu, 23 Aug 2007 20:00:41 +0200
Subject: makepkg : add -L (--dereference) to file.

makepkg didn't correctly detect the type of the archive
since it didn't dereference symlinks, and so failed
to extract the source tarball.

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
---
 scripts/makepkg.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index eb42ceff..e9578b22 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -611,7 +611,7 @@ extract_sources() {
 		fi
 
 		# fix flyspray #6246
-		local file_type=$(file -biz "$file")
+		local file_type=$(file -bizL "$file")
 		local cmd=''
 		case "$file_type" in
 			*application/x-tar*|*application/x-zip*|*application/x-cpio*)
-- 
cgit v1.2.3-70-g09d2