From 41c1b49335ae63fb8c1d232c4b173759df24c016 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 2 Jan 2017 13:32:40 +0100 Subject: [PATCH] quilt-patch.sh: Support new "sources" file format --- quilt-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quilt-patch.sh b/quilt-patch.sh index 983a75d..eaf24d5 100755 --- a/quilt-patch.sh +++ b/quilt-patch.sh @@ -3,7 +3,7 @@ export QUILT_PATCHES=$PWD # Extract source file name from sources file, # and assume it's the same name as the directory. -source=`cat sources | sed -e 's,^.* ,,g'` +source=`awk -F '[() ]+' '/^[A-Z0-9]+ /{print $2}; /^[0-9a-f]+ /{print $2}' sources` srcdir=${source%.tar.gz} if [ "$1" == "-f" ] && [ -d "$srcdir" ]; then echo Cleaning up $srcdir