diff options
author | John Rigby <john.rigby@linaro.org> | 2011-09-26 16:26:56 -0600 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-04 19:50:29 +0800 |
commit | 2b1aa1fd8ec5ea594368db13691981f6fa210d50 (patch) | |
tree | 0dad887cfa5ce78d48b02c032b3bacffcc281232 /debian/rules.d/2-binary-arch.mk | |
parent | dbf0e805077c4d66576e45d994edddb76098924f (diff) |
LINARO: DEBUG: Only rename debug symbol deb for primary archive
Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'debian/rules.d/2-binary-arch.mk')
-rw-r--r-- | debian/rules.d/2-binary-arch.mk | 18 |
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 2122b758870..a403bea9c84 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -325,14 +325,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. |