diff mbox series

[Unstable/Lunar,2/3] UBUNTU: [Packaging] debian/rules: Remove debug package install directory earlier

Message ID 20230113084033.256973-3-juerg.haefliger@canonical.com
State New
Headers show
Series Fix debug package builds | expand

Commit Message

Juerg Haefliger Jan. 13, 2023, 8:40 a.m. UTC
Remove the debug package install directory immediately after the
package has been built.

Note: We do this just to prevent potential out-of-disk-space problems
on the builders.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 6f9e808eb2e7..b42f4d989770 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -669,6 +669,9 @@  ifeq ($(do_dbgsym_package),true)
 	$(lockme) sed -i '/^$(dbgpkg)_/s/\.deb /.ddeb /' debian/files
 	# Now, the package wont get into the archive, but it will get put
 	# into the debug system.
+
+	# Clean out the debugging package source directory.
+	rm -rf $(dbgpkgdir)
 endif
 
 ifeq ($(do_linux_tools),true)
@@ -678,11 +681,6 @@  ifeq ($(do_cloud_tools),true)
 	$(call dh_all,$(pkgcloud))
 endif
 
-ifneq ($(do_full_build),false)
-	# Clean out the debugging package source directory.
-	rm -rf $(dbgpkgdir)
-endif
-
 #
 # per-architecture packages
 #