aboutsummaryrefslogtreecommitdiff
path: root/debian
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-11-16 15:17:28 -0700
commit72f8a85fadee9b897fbb9bf506a218b45ff5219d (patch)
tree61a1a284a05a167e9bff96d2189359b26414970f /debian
parentbf6d480f117978e26e0d4a64273fb1d356b08bfa (diff)
downloadlinux-linaro-precise-72f8a85fadee9b897fbb9bf506a218b45ff5219d.tar.gz
LINARO: DEBUG: Only rename debug symbol deb for primary archive
Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'debian')
-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 798ec1f4c19..a37bac3ce6e 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -373,16 +373,20 @@ 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; \
( \
$(lockme_cmd) 9 || exit 1; \
- 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; \
) 9>$(lockme_file)
# Now, the package wont get into the archive, but it will get put