]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-java-requires
- simplify extension matching
[packages/rpm.git] / rpm-java-requires
index d646f08018ea5d69c5ee8ecc9a4456e8d7c80af6..7e9a7715007eb975f82e4bab7c7445a2362a9528 100644 (file)
@@ -45,8 +45,7 @@ javajarversion() {
        chmod -R u+rwX $tmp
 
        # find .jar and .class files
-       find_requires $(find $tmp -type f '(' -name '*.class' -o -name '*.jar' ')') || ret=1
-
+       find_requires $(find $tmp -type f -regex '^.+\.(class|jar)$') || ret=1
        rm -rf $tmp
        return $ret
 }
This page took 0.034992 seconds and 4 git commands to generate.