Mailinglist Archive: opensuse-buildservice (256 mails)

< Previous Next >
[opensuse-buildservice] [PATCH 2/3] [obs-service-tar_scm] create tarball even if version does not change
Don't skip tarball creation because otherwise the tarball is completely
deleted as bs_service deletes all old _service* files.
---
tar_scm | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/tar_scm b/tar_scm
index 34b50f9..9278569 100644
--- a/tar_scm
+++ b/tar_scm
@@ -142,11 +142,6 @@ if [ "$MYSCM" == "svn" ]; then
fi
NEWVERSION=`LC_ALL=C svn info | sed -n 's,^Last Changed Rev: \(.*\),\1,p'`
cd -
- if [ "$OLDVERSION" == "$NEWVERSION" ]; then
- # cleanup and skip
- rm -rf "$TAR_DIRECTORY"
- exit 0
- fi
mv "$TAR_DIRECTORY" "${FILE}" || exit 1
else
# new checkout
@@ -183,11 +178,6 @@ elif [ "$MYSCM" == "git" ]; then
fi
NEWVERSION=`git show --pretty=%at | head -n 1`
cd -
- if [ "$OLDVERSION" == "$NEWVERSION" ]; then
- # cleanup and skip
- rm -rf "$TAR_DIRECTORY"
- exit 0
- fi
mv "$TAR_DIRECTORY" "${FILE}" || exit 1
else
# new checkout
@@ -212,11 +202,6 @@ elif [ "$MYSCM" == "hg" ]; then
hg pull || exit 1
NEWVERSION=`hg id -i -rtip`
cd -
- if [ "$OLDVERSION" == "$NEWVERSION" ]; then
- # cleanup and skip
- rm -rf "$TAR_DIRECTORY"
- exit 0
- fi
mv "$TAR_DIRECTORY" "${FILE}" || exit 1
else
# new checkout
@@ -245,11 +230,6 @@ elif [ "$MYSCM" == "bzr" ]; then
fi
NEWVERSION=`bzr revno`
cd -
- if [ "$OLDVERSION" == "$NEWVERSION" ]; then
- # cleanup and skip
- rm -rf "$TAR_DIRECTORY"
- exit 0
- fi
mv "$TAR_DIRECTORY" "${FILE}" || exit 1
else
# new checkout
--
1.7.3.4

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References