Merge remote-tracking branch 'origin/github/pr/145'
[grml-live.git] / scripts / release_helper.sh
index d5c21c2..40c532d 100755 (executable)
@@ -36,7 +36,7 @@ if [ -n "${AUTOBUILD:-}" ] ; then
   UNIXTIME=$(date +%s)
 
   cat > debian/changelog << EOF
-grml-live (${GRML_LIVE_VERSION}~autobuild${UNIXTIME}) UNRELEASED; urgency=low
+grml-live (${GRML_LIVE_VERSION}+autobuild${UNIXTIME}) UNRELEASED; urgency=low
 
   * Automatically built package based on the state of
     git repository at http://git.grml.org/?p=grml-live.git
@@ -110,9 +110,14 @@ if [ -n "${AUTOBUILD:-}" ] ; then
    )
    git checkout master
    git branch -D ${autobuild_branch} || true
-   sudo apt-get update
+
+   env APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none sudo apt-get update
+
    PACKAGES=$(dpkg --list grml-live\* | awk '/^ii/ {print $2}')
-   sudo apt-get -y --allow-unauthenticated install $PACKAGES
+   env APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none sudo apt-get -y \
+     -o DPkg::Options::=--force-confmiss \
+     -o DPkg::Options::=--force-confnew  \
+     --allow-unauthenticated install $PACKAGES
 fi
 
 ## END OF FILE #################################################################