From 104c5bc90e259028f5c9352a32f8976aa0f95a8d Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sat, 30 Nov 2019 13:13:49 +0100 Subject: makechrootpkg: sync database for checkpkg to avoid nonexistent targets For build servers or similar infrastructure its relatively common to not sync/update the database regularly. This leads to problems properly running checkpkg duo to nonexistent target files that we try to download. As building on build servers is a very common use case, lets ensure we sync the local database before trying to resolve the package locations. --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makechrootpkg.in b/makechrootpkg.in index 3fc599e..2740f0f 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -387,7 +387,7 @@ if (( ret != 0 )); then else if (( run_checkpkg )); then msg "Running checkpkg" - remotepkgs=($(pacman -Sddp --logfile /dev/null "${pkgnames[@]}")) + remotepkgs=($(pacman -Syddp --logfile /dev/null "${pkgnames[@]}"|grep '://')) if (( $? )); then warning "Skipped checkpkg due to missing repo packages" exit 0 -- cgit v1.2.3-70-g09d2