[trusty/azure,2/3] UBUNTU: Packaging: Make update-from-*master call copy-files
diff mbox series

Message ID 20190221165451.4232-3-cascardo@canonical.com
State New
Headers show
  • Split copy-files from update-from-*master
Related show

Commit Message

Thadeu Lima de Souza Cascardo Feb. 21, 2019, 4:54 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1786013

Now that copy-files and local-magle are introduced, update-from-*master may
make use of them, instead of doing the copies and mangles itself. That makes it
easier to replace update-from-*master with a single script version for all
trees in the future.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
 .../etc/update-from-azure-xenial-master       | 32 +------------------
 .../scripts/helpers/local-mangle              |  2 +-
 2 files changed, 2 insertions(+), 32 deletions(-)

diff mbox series

diff --git a/debian.azure-trusty/etc/update-from-azure-xenial-master b/debian.azure-trusty/etc/update-from-azure-xenial-master
index 5a819c7e4a09..98de164a3bf9 100755
--- a/debian.azure-trusty/etc/update-from-azure-xenial-master
+++ b/debian.azure-trusty/etc/update-from-azure-xenial-master
@@ -96,37 +96,7 @@  then
 	exit 1
-# Pick up any master branch changes to udeb modules or firmware.
-rsync -av --delete ${DEBIAN_SOURCE}/d-i/ ${DEBIAN_TARGET}/d-i
-# Update configs from master
-rsync -av --delete ${DEBIAN_SOURCE}/config/ ${DEBIAN_TARGET}/config
-# Turn off strong stack protection as it requires gcc 4.9+
-# Update package and DTB settings from master.
-rsync -av ${DEBIAN_SOURCE}/rules.d/*.mk ${DEBIAN_TARGET}/rules.d/
-# Disable ZFS as we have no tooling in trusty to mount these.
-sed -i -e 's/^\(do_zfs[ \t]*=[ \t]\)true\(.*\)$/\1false\2/' debian.xenial/rules.d/*.mk
-# Update modprobe.d from master
-rsync -av --delete ${DEBIAN_SOURCE}/modprobe.d/ ${DEBIAN_TARGET}/modprobe.d
-cp -p ${DEBIAN_SOURCE}/control.d/*.inclusion-list ${DEBIAN_TARGET}/control.d
-cp -p ${DEBIAN_SOURCE}/reconstruct ${DEBIAN_TARGET}/reconstruct
 fakeroot debian/rules clean updateconfigs
diff --git a/debian.azure-trusty/scripts/helpers/local-mangle b/debian.azure-trusty/scripts/helpers/local-mangle
index daa2f1f55d74..79f36e1b114f 100755
--- a/debian.azure-trusty/scripts/helpers/local-mangle
+++ b/debian.azure-trusty/scripts/helpers/local-mangle
 # Disable ZFS as we have no tooling in trusty to mount these.
-sed -i -e 's/^\(do_zfs[ \t]*=[ \t]\)true\(.*\)$/\1false\2/' "${DEBIAN}/rules.d/"*.mk
+sed -i -e 's/^\(do_zfs[ \t]*=[ \t]\)true\(.*\)$/\1false\2/' "debian.xenial/rules.d/"*.mk