Skip to content

Commit 2e23f4d

Browse files
committed
void-updates: skip packages without distfiles
1 parent 3643748 commit 2e23f4d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

void-updates.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ is_meta() {
2424
)
2525
}
2626

27+
has_distfiles() {
28+
(
29+
cd $src
30+
./xbps-src show $1 | grep -q '^distfiles:'
31+
)
32+
}
33+
2734
is_versioned() {
2835
case $1 in
2936
*-git) return 1;;
@@ -37,7 +44,11 @@ find_pkgs() {
3744
for f in $src/srcpkgs/*; do
3845
p=$(basename $f)
3946

40-
if [ ! -h $f ] && [ -f $f/template ] && ! is_meta $p && is_versioned $p; then
47+
if [ ! -h $f ] &&
48+
[ -f $f/template ] &&
49+
! is_meta $p &&
50+
has_distfiles $p &&
51+
is_versioned $p; then
4152
printf -- '%s\n' $p
4253
fi
4354
done

0 commit comments

Comments
 (0)