abuild: remove use of svnurl

Not used by anything in aports
This commit is contained in:
Natanael Copa 2022-12-01 17:15:47 +01:00
parent 42820c6d44
commit 115e41fd1f
1 changed files with 3 additions and 14 deletions

View File

@ -2619,7 +2619,7 @@ all() {
} }
# This abuild hook will checkout an svn or git repository by specifying # This abuild hook will checkout an svn or git repository by specifying
# $svnurl or $giturl in APKBUILD. You can checkout a specific branch in # $giturl in APKBUILD. You can checkout a specific branch in
# git by adding -b $branch in $giturl. $reporev will select the correct # git by adding -b $branch in $giturl. $reporev will select the correct
# commit, revision or tag for you. If you specify $disturl your distfile # commit, revision or tag for you. If you specify $disturl your distfile
# will automatically be uploaded with rsync to the url provided. # will automatically be uploaded with rsync to the url provided.
@ -2628,8 +2628,7 @@ all() {
snapshot() { snapshot() {
# check if we setup vars correctly # check if we setup vars correctly
[ -z "$disturl" ] && warning "Missing disturl in APKBUILD, auto uploading disabled." [ -z "$disturl" ] && warning "Missing disturl in APKBUILD, auto uploading disabled."
[ -z "$svnurl" ] && [ -z "$giturl" ] && die "Missing repository url in APKBUILD!" [ -z "$giturl" ] && die "Missing repository url in APKBUILD!"
[ -n "$svnurl" ] && [ -n "$giturl" ] && die "You can only use a single repository!"
local _date=$(date +%Y%m%d) local _date=$(date +%Y%m%d)
local _format="tar.gz" local _format="tar.gz"
# remove any repositories left in srcdir # remove any repositories left in srcdir
@ -2649,16 +2648,6 @@ snapshot() {
--prefix=$pkgname-$_version/ $_rev \ --prefix=$pkgname-$_version/ $_rev \
|| return 1 || return 1
fi fi
# export svn repo and archive
if [ -n "$svnurl" ]; then
local _version=${verbase:-0}_svn${_date}
command -v svn >/dev/null || \
die "Missing svn! Install subverion to support svn export."
[ -n "$reporev" ] && local _rev="-r $reporev"
msg "Creating svn snapshot: $pkgname-$_version"
svn co $_rev $svnurl $pkgname-$_version || return 1
tar zcf $pkgname-$_version.$_format $pkgname-$_version || return 1
fi
# upload to defined distfiles url # upload to defined distfiles url
if [ -n "$disturl" ]; then if [ -n "$disturl" ]; then
command -v rsync >/dev/null || \ command -v rsync >/dev/null || \
@ -2712,7 +2701,7 @@ usage() {
rootbld Build package in clean chroot rootbld Build package in clean chroot
rootpkg Run 'package', the split functions and create apks as fakeroot rootpkg Run 'package', the split functions and create apks as fakeroot
sanitycheck Basic sanity check of APKBUILD sanitycheck Basic sanity check of APKBUILD
snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl snapshot Create a \$giturl snapshot and upload to \$disturl
sourcecheck Check if remote source package exists upstream sourcecheck Check if remote source package exists upstream
srcpkg Make a source package srcpkg Make a source package
undeps Uninstall packages listed in makedepends and depends undeps Uninstall packages listed in makedepends and depends