summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_blacklist.sh3
-rwxr-xr-xbin/reproducible_build.sh9
-rwxr-xr-xbin/reproducible_common.sh9
3 files changed, 12 insertions, 9 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
}
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 65c632f9..6a6978c5 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -105,15 +105,6 @@ cleanup_all() {
if ! $BAD_LOCKFILE ; then rm -f $LOCKFILE ; fi
}
-cleanup_userContent() {
- rm -vf $BASE/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_*.rbuild.log{,.gz}
- rm -vf $BASE/logs/${SUITE}/${ARCH}/${SRCPACKAGE}_*.build?.log{,.gz}
- rm -vf $BASE/dbd/${SUITE}/${ARCH}/${SRCPACKAGE}_*.debbindiff.html
- rm -vf $BASE/dbdtxt/${SUITE}/${ARCH}/${SRCPACKAGE}_*.debbindiff.txt{,.gz}
- rm -vf $BASE/buildinfo/${SUITE}/${ARCH}/${SRCPACKAGE}_*.buildinfo
- rm -vf $BASE/logdiffs/${SUITE}/${ARCH}/${SRCPACKAGE}_*.diff{,.gz}
-}
-
update_db_and_html() {
# everything passed at this function is saved as a status of this package in the db
STATUS="$@"
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 569cb56d..5b6faf3d 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -439,6 +439,15 @@ get_filesize() {
fi
}
+cleanup_userContent() {
+ rm -vf $BASE/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_*.rbuild.log{,.gz}
+ rm -vf $BASE/logs/${SUITE}/${ARCH}/${SRCPACKAGE}_*.build?.log{,.gz}
+ rm -vf $BASE/dbd/${SUITE}/${ARCH}/${SRCPACKAGE}_*.debbindiff.html
+ rm -vf $BASE/dbdtxt/${SUITE}/${ARCH}/${SRCPACKAGE}_*.debbindiff.txt{,.gz}
+ rm -vf $BASE/buildinfo/${SUITE}/${ARCH}/${SRCPACKAGE}_*.buildinfo
+ rm -vf $BASE/logdiffs/${SUITE}/${ARCH}/${SRCPACKAGE}_*.diff{,.gz}
+}
+
#
# create the png (and query the db to populate a csv file...)
#