summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-06 13:10:16 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-06 13:10:16 +0100
commit4e64b36196cd8e7388fe2ad45b6ae7c518102dc3 (patch)
tree3968c7541e790d2f4ba7f93993ba94526204219b /bin/build-rpm-package
parent3fd1dc346f2b9310ecbdeed2c696121d05dfdc2b (diff)
downloadbuildscripts-4e64b36196cd8e7388fe2ad45b6ae7c518102dc3.tar.gz
buildscripts-4e64b36196cd8e7388fe2ad45b6ae7c518102dc3.tar.bz2
buildscripts-4e64b36196cd8e7388fe2ad45b6ae7c518102dc3.zip
ignore Source0: in spec file
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 804f52b..7d477c2 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -181,7 +181,7 @@ build_packages() {
fi
sed -i $PROJECT.spec -e "s/%{?dist}/.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT%{?dist}/"
- cat $PROJECT.spec | egrep "^Source[0-9]+:.*" | awk '{ print $2 }' | while read source_file; do
+ cat $PROJECT.spec | egrep "^Source[1-9]+:.*" | awk '{ print $2 }' | while read source_file; do
find $PROJECT/rpm/$source_file -maxdepth 0 1> /dev/null && cp $PROJECT/rpm/$source_file . && continue
find $PROJECT/$source_file -maxdepth 0 1> /dev/null && cp $PROJECT/$source_file .
done