diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-08 15:58:51 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-08 16:06:44 +0200 |
commit | d6bda5a1665d8d04526aea299781570ee7486b2e (patch) | |
tree | b9c2978da1bcdbc86ca1c7e39cff07322dd17ac2 /scripts | |
parent | f671b529d1c45b1d1b39003ad4e2a2b646c9fa98 (diff) | |
download | librpm-tizen-d6bda5a1665d8d04526aea299781570ee7486b2e.tar.gz librpm-tizen-d6bda5a1665d8d04526aea299781570ee7486b2e.tar.bz2 librpm-tizen-d6bda5a1665d8d04526aea299781570ee7486b2e.zip |
Avoid noise from python bytecompile on non-python pkgs (RhBug:539635)
- If a pattern doesn't match, we'd prefer an empty list instead of
unexpanded garbage thank you... nullglob shell option is just what the
doctor ordered but unfortunately its a bash-specific thing. Otoh there
are number of other bash-specific scripts in rpm so probably not
much of an issue...
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/brp-python-bytecompile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/brp-python-bytecompile b/scripts/brp-python-bytecompile index 1faa6dbc2..9fac5a79f 100644 --- a/scripts/brp-python-bytecompile +++ b/scripts/brp-python-bytecompile @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then @@ -32,6 +32,7 @@ fi # For example, below /usr/lib/python2.6/, we're targetting /usr/bin/python2.6 # and below /usr/lib/python3.1/, we're targetting /usr/bin/python3.1 +shopt -s nullglob for python_libdir in $RPM_BUILD_ROOT/usr/lib*/python*/ ; do python_binary=/usr/bin/$(basename $python_libdir) |