pactest/sync200: check for curl instead of fetch
We can't just check for LIBS as curl won't be listed. Instead, look at the length of the LIBCURL var from the Makefile. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
6bf60568f8
commit
ce8f91a71b
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ CLEANFILES = $(CONFTESTS)
|
|||
|
||||
#### Taken from the autoconf scripts Makefile.am ####
|
||||
edit = sed \
|
||||
-e 's|@LIBS[@]|$(LIBS)|g' \
|
||||
-e 's|@LIBCURL[@]|$(LIBCURL)|g' \
|
||||
-e 's|@configure_input[@]|Generated from $@.in; do not edit by hand.|g'
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
self.description = "Synchronize the local database"
|
||||
|
||||
if not "fetch" in "@LIBS@":
|
||||
if len("@LIBCURL@") == 0:
|
||||
self.option['XferCommand'] = ['/usr/bin/curl %u > %o']
|
||||
|
||||
sp1 = pmpkg("spkg1", "1.0-1")
|
||||
|
|
Loading…
Add table
Reference in a new issue