Skip to content
Snippets Groups Projects
Commit fc8c2c3c authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian rebuilder 'thing': also consider arch all .buildinfo files

parent 7e6d16d3
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ VERSION=$(grep-available -S $PKG -s Version $SOURCES | head -1 | cut -d ' ' -f2) ...@@ -62,7 +62,7 @@ VERSION=$(grep-available -S $PKG -s Version $SOURCES | head -1 | cut -d ' ' -f2)
output_echo "let's try to rebuild $PKG ($VERSION) from $SUITE/$ARCH" output_echo "let's try to rebuild $PKG ($VERSION) from $SUITE/$ARCH"
# query a random .buildinfo file path (for that $PKG and $VERSION from bullseye...) from builtin-pho db # query a random .buildinfo file path (for that $PKG and $VERSION from bullseye...) from builtin-pho db
BUILTINPHOPATH=$(psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND source_version='$VERSION' AND arch_amd64=true ORDER BY RANDOM() LIMIT 1" buildinfo) BUILTINPHOPATH=$(psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND source_version='$VERSION' AND arch_amd64=true OR arch_all=true LIMIT 1" buildinfo)
if [ -z "$BUILTINPHOPATH" ] ; then if [ -z "$BUILTINPHOPATH" ] ; then
output_echo "No .buildinfo file found for $PKG ($VERSION) for $ARCH" output_echo "No .buildinfo file found for $PKG ($VERSION) for $ARCH"
output_echo ".buildinfo files known for $PKG and arch_amd64 or arch_all" output_echo ".buildinfo files known for $PKG and arch_amd64 or arch_all"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment