Skip to content

Commit af82bab

Browse files
author
Juan RP
committed
configure: return 0 if xbps-src exits with 2 due to only_for_archs/broken/restricted.
Also switch to ~/void-packages by default.
1 parent 66d6967 commit af82bab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ done
8282
shift $(($OPTIND - 1))
8383

8484
# Assign defaults
85-
: ${DISTDIR:=$HOME/xbps-packages}
85+
: ${DISTDIR:=$HOME/void-packages}
8686
: ${MASTERDIR:=$DISTDIR/masterdir}
8787
: ${HOSTDIR:=$DISTDIR/hostdir}
8888

@@ -165,7 +165,7 @@ printf "print_pkgs:\n" >> Makefile
165165
printf "\t@echo \$(PKGS)\n\n" >> Makefile
166166
printf "built/%%: tobuild/%%\n" >> Makefile
167167
printf "\t@echo \"[xbps-src]\t\${@F}\"\n" >> Makefile
168-
printf "\t@$XSC pkg \${@F}\n" >> Makefile
168+
printf "\t@$XSC pkg \${@F}; [ \$\$? -eq 2 ] && exit 0\n" >> Makefile
169169
printf "\t@touch \$@\n" >> Makefile
170170
printf "\t@rm tobuild/\${@F}\n\n" >> Makefile
171171

0 commit comments

Comments
 (0)