~alpine/devel

abuild: another trivial update to the saveas-* support v1 PROPOSED

Matt Smith: 1
 abuild: another trivial update to the saveas-* support

 1 files changed, 4 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/231/mbox | git am -3
Learn more about email & git

[alpine-devel] [PATCH] abuild: another trivial update to the saveas-* support Export this patch

I opted for ncopa's method to fix saveas-* URIs, obtained from his sourcecheck()
function, also in abuild.
---
 abuild.in |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/abuild.in b/abuild.in
index 904b1c3..528fba5 100755
--- a/abuild.in
+++ b/abuild.in
@@ -195,9 +195,10 @@ uri_fetch() {

	# fix saveas-*://* URIs
	case "$uri" in
		# remove 'saveas-' from beginning and
		# '/filename' from end of URI
		saveas-*://*) uri="${uri:7:$(expr ${#uri} - 7 - ${#d} - 1)}";;
		saveas-*://*)
			uri=${uri#saveas-}   # remove 'saveas-' from beginning
			uri=${uri%/*}        # remove '/<filename>' from end
			;;
	esac

	# we need GNU wget for this
-- 
1.7.3.3



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---