forked from xdave/xbps-bulk
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove packages marked to not build anymore on given architecture
When package is updated and marked not to build on some architectures with archs/nocross/broken/restricted, it needs to be removed form repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ pkgs.txt | |
pkgs-removed.txt | ||
repo-checkvers.txt | ||
repo-checkvers-remove.txt | ||
repo-checkvers-pkgver.txt | ||
disabled.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
repository="$1" | ||
arch="$2" | ||
xbps_target_arch="$3" | ||
RCV_FPV="repo-checkvers-pkgver.txt" | ||
|
||
[ -d "$repository" ] || exit 0 | ||
[ -e disabled.txt ] || exit 0 | ||
[ -e "$RCV_FPV" ] || exit 0 | ||
|
||
while read -r pkgname; do | ||
pkgver="$(grep "^$pkgname " < $RCV_FPV | tr ' ' -)" | ||
[ "$pkgver" ] || continue | ||
find "$repository" -name "${pkgver}.${arch}.xbps" -exec env $xbps_target_arch xbps-rindex -R '{}' ';' | ||
done < disabled.txt |