|
Panu Matilainen |
23ac61 |
commit db4905f51eb80b55c408e3a659bab6b4ec5d9e3b
|
|
Panu Matilainen |
23ac61 |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
23ac61 |
Date: Fri Jun 10 12:08:45 2011 +0300
|
|
Panu Matilainen |
23ac61 |
|
|
Panu Matilainen |
23ac61 |
Adjust script detection rules to work with file >= 5.07 too (RhBug:712251)
|
|
Panu Matilainen |
23ac61 |
- Somewhere between file 5.05 and 5.07 it started adding encoding
|
|
Panu Matilainen |
23ac61 |
to script descriptions, eg "<mumble> script text executable" became
|
|
Panu Matilainen |
23ac61 |
"<mumble> script, <encoding> text executable" breaking what had
|
|
Panu Matilainen |
23ac61 |
been working for 10+ years in the case of old find-requires.
|
|
Panu Matilainen |
23ac61 |
- Permit either comma or space after "script", this works for both
|
|
Panu Matilainen |
23ac61 |
old and new file.
|
|
Panu Matilainen |
23ac61 |
|
|
Panu Matilainen |
23ac61 |
diff --git a/autodeps/linux.req b/autodeps/linux.req
|
|
Panu Matilainen |
23ac61 |
index cf60bd9..b9a8f99 100644
|
|
Panu Matilainen |
23ac61 |
--- a/autodeps/linux.req
|
|
Panu Matilainen |
23ac61 |
+++ b/autodeps/linux.req
|
|
Panu Matilainen |
23ac61 |
@@ -20,10 +20,11 @@ fi
|
|
Panu Matilainen |
23ac61 |
# --- Grab the file manifest and classify files.
|
|
Panu Matilainen |
23ac61 |
#filelist=`sed "s/['\"]/\\\&/g"`
|
|
Panu Matilainen |
23ac61 |
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
|
|
Panu Matilainen |
23ac61 |
-exelist=`echo $filelist | xargs -r file | grep -Ev ":.* (commands|script) " | \
|
|
Panu Matilainen |
23ac61 |
+exelist=`echo $filelist | xargs -r file | \
|
|
Panu Matilainen |
23ac61 |
+ grep -Ev ":.* (commands|script)[, ]" | \
|
|
Panu Matilainen |
23ac61 |
grep ":.*executable" | cut -d: -f1`
|
|
Panu Matilainen |
23ac61 |
scriptlist=`echo $filelist | xargs -r file | \
|
|
Panu Matilainen |
23ac61 |
- grep -E ":.* (commands|script) " | cut -d: -f1`
|
|
Panu Matilainen |
23ac61 |
+ grep -E ":.* (commands|script)[, ]" | cut -d: -f1`
|
|
Panu Matilainen |
23ac61 |
liblist=`echo $filelist | xargs -r file | \
|
|
Panu Matilainen |
23ac61 |
grep ":.*shared object" | cut -d : -f1`
|
|
Panu Matilainen |
23ac61 |
|
|
Panu Matilainen |
23ac61 |
diff --git a/fileattrs/script.attr b/fileattrs/script.attr
|
|
Panu Matilainen |
23ac61 |
index 13b8ba0..79f4d73 100644
|
|
Panu Matilainen |
23ac61 |
--- a/fileattrs/script.attr
|
|
Panu Matilainen |
23ac61 |
+++ b/fileattrs/script.attr
|
|
Panu Matilainen |
23ac61 |
@@ -1,3 +1,3 @@
|
|
Panu Matilainen |
23ac61 |
%__script_requires %{_rpmconfigdir}/script.req
|
|
Panu Matilainen |
23ac61 |
-%__script_magic ^.* script text.*$
|
|
Panu Matilainen |
23ac61 |
+%__script_magic ^.* script[, ].*$
|
|
Panu Matilainen |
23ac61 |
%__script_flags exeonly
|