aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-09-26 16:26:56 -0600
committerJohn Rigby <john.rigby@linaro.org>2011-10-17 09:59:08 -0600
commit4d73c7b1758cd497414d130f33a6d31b459b2211 (patch)
treee6df7d3721a1e2571039664c51d596bd5fd1ab33
parent2c8a0dd25b9205571686fa0a41fd794d4b85cf16 (diff)
LINARO: DEBUG: Only rename debug symbol deb for primary archive
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--debian/rules.d/2-binary-arch.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 4d4378b3cc1..46a05b4c663 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -364,14 +364,18 @@ ifneq ($(skipdbg),true)
# package from being mirrored. It is instead, through some
# archive admin hackery, copied to http://ddebs.ubuntu.com.
#
- mv ../$(dbgpkg)_$(release)-$(revision)_$(arch).deb \
- ../$(dbgpkg)_$(release)-$(revision)_$(arch).ddeb
+ # Only do this for PRIMARY archive for now
+ #
set -e; \
- if grep -qs '^Build-Debug-Symbols: yes$$' /CurrentlyBuilding; then \
- sed -i '/^$(dbgpkg)_/s/\.deb /.ddeb /' debian/files; \
- else \
- grep -v '^$(dbgpkg)_.*$$' debian/files > debian/files.new; \
- mv debian/files.new debian/files; \
+ if grep -qs '^Purpose: PRIMARY$$' /CurrentlyBuilding; then \
+ mv ../$(dbgpkg)_$(release)-$(revision)_$(arch).deb \
+ ../$(dbgpkg)_$(release)-$(revision)_$(arch).ddeb; \
+ if grep -qs '^Build-Debug-Symbols: yes$$' /CurrentlyBuilding; then \
+ sed -i '/^$(dbgpkg)_/s/\.deb /.ddeb /' debian/files; \
+ else \
+ grep -v '^$(dbgpkg)_.*$$' debian/files > debian/files.new; \
+ mv debian/files.new debian/files; \
+ fi; \
fi
# Now, the package wont get into the archive, but it will get put
# into the debug system.