diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2019-11-30 13:13:49 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-11-30 13:25:06 +0100 |
commit | 104c5bc90e259028f5c9352a32f8976aa0f95a8d (patch) | |
tree | 2a66cb310ff0015da4261c44411838d64be2d32c /makechrootpkg.in | |
parent | cee28a1b13ddd0f60b2466b20a43f04a4bf5df54 (diff) | |
download | devtools-104c5bc90e259028f5c9352a32f8976aa0f95a8d.tar.xz |
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.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |