Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-08-09 13:42:51 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-08-09 13:42:51 +0200
commitfd135a69ed92345aaf0551eecb2570c20838e4e3 (patch)
tree025f420a15a70b62a3021e2af1b17add5b29d0ff
parent18fcdff43a009c0ff19c43c8c13c97d12d37e687 (diff)
rpm/modflist: Simplify compression support.
-rwxr-xr-xrpm/modflist8
1 files changed, 3 insertions, 5 deletions
diff --git a/rpm/modflist b/rpm/modflist
index 14071040c9..62d8f3a08f 100755
--- a/rpm/modflist
+++ b/rpm/modflist
@@ -5,8 +5,6 @@ output=$3
mod_builtin=$4
while read MOD ; do
- [ -n "$MOD" ] || continue
- grep "/${MOD}\.ko\(\.xz\)\?\$" "$flist" >> "$output" \
- || { grep -q "/${MOD}\.ko\(\.xz\)\?\$" $mod_builtin && echo "Module $MOD built-in"; } \
- || echo Module "$MOD" missing
-done < "$modules"
+ [ -n "$MOD" ] || continue
+ cat $flist | grep -E "/$MOD[.]ko([.]xz)?\$" >> $output || { grep -q /$MOD[.]ko\$ $mod_builtin && echo Module $MOD built-in ;} || echo Module $MOD missing
+done < $modules