From 7304e43b26f279e837ee9a1391eb05e35578edcd Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 28 Apr 2013 21:46:21 +0200 Subject: [PATCH] Fix release num when submitting with another distro --- submit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submit b/submit index 838d99b..5d2367b 100755 --- a/submit +++ b/submit @@ -2,7 +2,7 @@ PACKAGE=$(basename $(pwd)) VERSION=$(rpm -q --qf "%{version}\n" --specfile $PACKAGE.spec | head -1) -RELEASE=$(rpm -q --qf "%{release}\n" --specfile $PACKAGE.spec | head -1) +#RELEASE=$(rpm -q --qf "%{release}\n" --specfile $PACKAGE.spec | head -1) ME=$(whoami) SERVER=build.firewall-services.com BRANCH=$(git branch | grep '*' | cut -d' ' -f2) @@ -38,7 +38,7 @@ scp -o ControlPath=$SOCKET $PACKAGE.spec $ME@$SERVER:rpmbuild/SPECS/ # And build ssh -o ControlPath=$SOCKET -l $ME $SERVER rpmbuild -bs --nodeps rpmbuild/SPECS/$PACKAGE.spec -ssh -o ControlPath=$SOCKET -l $ME $SERVER buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-$RELEASE.src.rpm $DIST +ssh -o ControlPath=$SOCKET -l $ME $SERVER buildrpm rpmbuild/SRPMS/$PACKAGE-$VERSION-*.src.rpm $DIST ssh -o ControlPath=$SOCKET -l $ME $SERVER rm -f rpmbuild/SPECS/$PACKAGE.spec rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm rm -rf $TMPDIR