* Adds the contrib/official-debian-image-hook script used for generating the
authorThomas Goirand <thomas@goirand.fr>
Wed, 28 Jan 2015 12:46:35 +0000 (12:46 +0000)
committerThomas Goirand <thomas@goirand.fr>
Wed, 28 Jan 2015 12:46:35 +0000 (12:46 +0000)
    official Debian image.

contrib/official-debian-image-hook [new file with mode: 0644]
debian/changelog
debian/openstack-debian-images.docs [new file with mode: 0644]

diff --git a/contrib/official-debian-image-hook b/contrib/official-debian-image-hook
new file mode 100644 (file)
index 0000000..e736cab
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# This script is used when generating the Debian official
+# OpenStack image to list all source packages shipped in
+# the image, and later on generate a tarball containing
+# them all.
+
+TOP="/w"
+LOCALCONF="${TOP}/in"
+STATE="${TOP}/state"
+
+. ${LOCALCONF}/common.sh
+
+BUILDNAME="openstack-jessie"
+WORK="${TOP}/work/${BUILDNAME}"
+
+# Write the script inside the image chroot
+cat > $BODI_CHROOT_PATH/list-sources <<EOF
+#!/bin/sh
+for PKG in \$(COLUMNS=500 dpkg -l | awk '/^ii/ {printf "%s ",\$2}'); do
+ apt-get source -qq --print-uris \$PKG
+done
+EOF
+
+# Execute the script and delete it
+chmod +x $BODI_CHROOT_PATH/list-sources
+chroot $BODI_CHROOT_PATH /list-sources > $WORK/sources
+rm -f $BODI_CHROOT_PATH/list-sources
index 51219f7..7a38705 100644 (file)
@@ -6,6 +6,8 @@ openstack-debian-images (1.2) unstable; urgency=medium
   * Error as non-zero in case of an error (Closes: #776216). Thanks to Steve
     McIntyre <steve@einval.com> for the bug report and patch.
   * Allow stretch and buster as release names.
+  * Adds the contrib/official-debian-image-hook script used for generating the
+    official Debian image.
 
  -- Thomas Goirand <zigo@debian.org>  Mon, 26 Jan 2015 15:14:53 +0100
 
diff --git a/debian/openstack-debian-images.docs b/debian/openstack-debian-images.docs
new file mode 100644 (file)
index 0000000..41ca5f0
--- /dev/null
@@ -0,0 +1 @@
+contrib