diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-07 15:03:28 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-07 17:04:38 +0200 |
commit | ace932886788343aec73582439b2e049e7742182 (patch) | |
tree | 01547f4e806ad8f5369ffd9e7223d5be734553b7 /bin/reproducible_blacklist.sh | |
parent | bb31057d5cc15241960ffec7b0ce584037008ca7 (diff) | |
download | jenkins.debian.net-ace932886788343aec73582439b2e049e7742182.tar.xz |
reproducible: teach _blacklist.sh to clean up packages files when blacklisting
Diffstat (limited to 'bin/reproducible_blacklist.sh')
-rwxr-xr-x | bin/reproducible_blacklist.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/reproducible_blacklist.sh b/bin/reproducible_blacklist.sh index 9de1b68d..528225b0 100755 --- a/bin/reproducible_blacklist.sh +++ b/bin/reproducible_blacklist.sh @@ -11,11 +11,14 @@ common_init "$@" # common code defining db access . /srv/jenkins/bin/reproducible_common.sh +ARCH=amd64 # FIXME - multiarchify + blacklist_packages() { DATE=$(date +'%Y-%m-%d %H:%M') for PKG in $PACKAGES ; do VERSION=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT version FROM sources WHERE name='$PKG' AND suite='$SUITE';") PKGID=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE';") + cleanup_userContent sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO results (package_id, version, status, build_date) VALUES ('$PKGID', '$VERSION', 'blacklisted', '$DATE');" done } |