summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2015-06-08 19:29:19 (GMT)
committerVivek Dasmohapatra <vivek@collabora.co.uk>2015-06-08 19:29:19 (GMT)
commitf86ae5f234e3b70983f899238c6d817713539d60 (patch)
tree78855bb030ac0d5db876379cc7f055b07ef44cbb
parentbad1c94274a663416df3a5f4f4de97efe78f3eed (diff)
downloadmisc-scripts-f86ae5f234e3b70983f899238c6d817713539d60.tar.gz
misc-scripts-f86ae5f234e3b70983f899238c6d817713539d60.tar.xz
Don't get confused by PGP signed .dsc files
-rwxr-xr-xsteamos-kernel-package-update8
1 files changed, 7 insertions, 1 deletions
diff --git a/steamos-kernel-package-update b/steamos-kernel-package-update
index 64eeae2..9114e4e 100755
--- a/steamos-kernel-package-update
+++ b/steamos-kernel-package-update
@@ -91,7 +91,13 @@ parse_dsc ()
Checksums-*:) go=0; continue; ;;
Files:) go=1; continue; ;;
esac;
- if [ $go = 1 ]; then dsc_src=${dsc_src}" "$file; fi;
+
+ if [ $go = 1 ];
+ then
+ if [ -z "$sum$size$file" ]; then break; fi;
+ dsc_src=${dsc_src}" "$file;
+ fi;
+
done < $dsc_path;
dsc_ver=${dsc_ver%%+*};