diff --git a/rename-e-smith-pkg.sh b/rename-e-smith-pkg.sh index e075466..702bab7 100755 --- a/rename-e-smith-pkg.sh +++ b/rename-e-smith-pkg.sh @@ -280,8 +280,9 @@ sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec" git add "$TARGETPKG.spec" #Delete archivefilename file if it follows the new standard -if [ -e archivefilename ] ; then git rm archivefilename $QUIET ; fi - +if [ -e archivefilename ] ; then + if [ $(cat archivefilename) == "$TARGETPKG-*.tar.gz" ] ; then git rm archivefilename $QUIET ; fi +fi #Update createlinks # - if there is an e-smith--update event rename to smeserver--update and add symlink