Get tarball extension for lfs
This commit is contained in:
parent
1a4d5ade8f
commit
c5800c3e14
@ -228,6 +228,9 @@ if [[ $GOTONE -eq 0 ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get the tarball file extension
|
||||
EXT=$(cat "$(basename $SPECFILE)" | grep -i ^Source | head -n 1 | sed -r 's/^[S|s]ource[0..9]?:\s?//' | xargs basename | sed -E 's/^([^.]*\.)(.*)$/\2/')
|
||||
|
||||
# Create the local Git repository
|
||||
GITFiles=$WORKDIR/$ORGGITEA
|
||||
mkdir -p $GITFiles
|
||||
@ -608,13 +611,6 @@ git remote add origin "$GITEAHOST/$ORGGITEA/$RepoName.git"
|
||||
#GIT_SSL_NO_VERIFY=true git push --force -u $QUIET origin master
|
||||
git push --force -u $QUIET origin master
|
||||
|
||||
# Now create the version and release tag for these files
|
||||
#RELEASE=`rpm --queryformat '%{release}\n' --specfile $SPECFILE | head -n 1`
|
||||
# Release is not reliable - if you run on Rocky it comes back EL8, centos 7 - EL7
|
||||
# So, we need to just take the build part (first word)
|
||||
#TAG=$VERSION"-"${RELEASE%.*}
|
||||
#git tag -a $TAG -m "$COMMENT"
|
||||
#git push origin $TAG $QUIET
|
||||
# Now create the version and release tag from the specfile
|
||||
VERSION_RELEASE_LONG=`rpm --queryformat '%{version} %{release}\n' --specfile $SPECFILE`
|
||||
VERSION_RELEASE=${VERSION_RELEASE_LONG%%$'\n'*}
|
||||
|
Loading…
Reference in New Issue
Block a user