check format of archivefilename

This commit is contained in:
Trevor Batley 2023-06-13 16:39:10 +10:00
parent 15899ef0c7
commit ea5551e41f

View File

@ -280,8 +280,9 @@ sed -i "/^Source:/ s/tar.xz/tar.gz/" "$TARGETPKG.spec"
git add "$TARGETPKG.spec" git add "$TARGETPKG.spec"
#Delete archivefilename file if it follows the new standard #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 #Update createlinks
# - if there is an e-smith-<pkg>-update event rename to smeserver-<pkg>-update and add symlink # - if there is an e-smith-<pkg>-update event rename to smeserver-<pkg>-update and add symlink