tags 806068 + patch
thanks

> dh_install
> find debian/linaro-image-tools -type f |xargs sed -i 's|#!/usr/bin/env 
> python|#!/usr/bin/python|'
> find: `debian/linaro-image-tools': No such file or directory
> sed: no input files
> debian/rules:11: recipe for target 'override_dh_install' failed

Explanation: We are creating arch-independent packages, so
"debian/linaro-image-tools" does not exist because
"linaro-image-tools" is arch-dependent.

The trivial fix is to override dh_install only when creating
arch-dependent packages.

Patch attached.

Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,8 @@ export PATH := $(PATH):/sbin
 
 %:
        dh $@ --with python2
-override_dh_install:
+
+override_dh_install-arch:
        dh_install
        find debian/linaro-image-tools -type f |xargs sed -i 's|#!/usr/bin/env 
python|#!/usr/bin/python|'
 

Reply via email to