attempt to index deb packages for apt-get
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 21 Jan 2013 08:16:56 +0000 (09:16 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 21 Jan 2013 08:16:56 +0000 (09:16 +0100)
vbuild-nightly.sh

index 57c1d7c..622a420 100755 (executable)
@@ -715,8 +715,12 @@ function main () {
            webpublish_rsync_dir $WEBPATH/$BASE/RPMS/ /vservers/$BASE/build/RPMS/
            [[ -n "$PUBLISH_SRPMS" ]] && webpublish_rsync_dir $WEBPATH/$BASE/SRPMS/ /vservers/$BASE/build/SRPMS/
        else
+           # run scanpackages so we can use apt-get on this
+           # (not needed on fedora b/c this is done by the regular build already)
+           vserver $BASE exec bash -c "(cd /build ; dpkg-scanpackages DEBIAN/ | gzip -9c > DEBIAN/Packages.gz)"
            webpublish mkdir -p $WEBPATH/$BASE/DEBIAN
-           webpublish_rsync_files $WEBPATH/$BASE/DEBIAN/ /vservers/$BASE/build/DEBIAN/*.deb
+           webpublish_rsync_files $WEBPATH/$BASE/DEBIAN/ /vservers/$BASE/build/DEBIAN/*.deb 
+           webpublish_rsync_files $WEBPATH/$BASE/ /vservers/$BASE/build/DEBIAN/*.gz
        fi
        # publish myplc-release if this exists
        release=/vservers/$BASE/build/myplc-release