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

Message ID 20190221165736.4788-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:57 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>
 debian.xenial/etc/update-from-xenial-master | 39 +--------------------
 1 file changed, 1 insertion(+), 38 deletions(-)

diff mbox series

diff --git a/debian.xenial/etc/update-from-xenial-master b/debian.xenial/etc/update-from-xenial-master
index c1d137e29e05..46dbdb74bb91 100755
--- a/debian.xenial/etc/update-from-xenial-master
+++ b/debian.xenial/etc/update-from-xenial-master
@@ -94,43 +94,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/
-# Remove the .mk files from the arch's that are not supported
-for i in ${FOREIGN_ARCHES}
-	rm -f ${DEBIAN_TARGET}/rules.d/${i}.mk
-	git rm -f ${DEBIAN_TARGET}/rules.d/${i}.mk || true
-# 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
@@ -150,7 +114,6 @@  if [ -z "$SKIP_REBASE_IF_UPTODATE" ]; then
 # Stage the bits we changed.
-rm -f ${DEBIAN_TARGET}/d-i/kernel-versions
 git add ${DEBIAN_TARGET}/d-i ${DEBIAN_TARGET}/config \
 	${DEBIAN_TARGET}/rules.d/*.mk ${DEBIAN_TARGET}/reconstruct \