fix archivefilename

This commit is contained in:
Trevor Batley 2023-06-14 16:48:14 +10:00
parent e3f3040073
commit 8f8632e65e

View File

@ -280,11 +280,15 @@ 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
if [ $(cat archivefilename) == "$TARGETPKG-*.tar.gz" ] ; then
if [[ -e archivefilename ]] ; then
if [ $DEBUG ] ; then echo "archivefilename exists" ; fi
if [[ $(cat archivefilename) == "$TARGETPKG-*.tar.gz" ]] ; then
if [ $DEBUG ] ; then echo "deleteing archivefilename - meets new standard" ; fi
git rm archivefilename $QUIET
else
if [ $DEBUG ] ; then echo "substituting smeserver for e-smith in archivefilename" ; fi
sed -i 's/e-smith/smeserver/g' archivefilename
git add archivefilename
fi
fi
#Update createlinks