]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- don't use entire file contents as filename when checking if .so links
authorMarcin Krol <hawk@tld-linux.org>
Sun, 4 Aug 2013 11:03:28 +0000 (11:03 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 4 Aug 2013 11:03:28 +0000 (11:03 +0000)
  point to existing files (was breaking checks when file had more content)

rpm-build-macros.spec
rpm.macros

index 244b1295bdc65737f61b937ec0b1a88cd65ec442..6868b54b7fbbfb94f8de978e7186cea4ef7bcc60 100644 (file)
@@ -11,7 +11,7 @@ Summary:      PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
 Name:          rpm-build-macros
 Version:       %{rpm_macros_rev}
-Release:       4
+Release:       5
 License:       GPL
 Group:         Development/Building
 Source0:       rpm.macros
index 1191109a0abc1091ce7269bb14867fe6d82b82d5..8456c980ecf25df4cb6a657de10a498f8e36268c 100644 (file)
@@ -546,7 +546,7 @@ Provides: %{1} = %{?epoch:%{epoch}:}%{?version:%{version}}%{?release:-%{release}
                        # verify that .so links point to existing files (not allowed to point to "other package") \
                        # TODO: iterate over all man dirs, but in Th there is only one true man dir \
                        err=$(grep -rl '^\.so ' "$RPM_BUILD_ROOT$i" | while read doc; do \
-                               l=$(cat "$doc"); \
+                               l=$(grep -r '^\.so ' "$doc"); \
                                l=${l#.so }; \
                                d=$(dirname $doc); \
                                test -e $RPM_BUILD_ROOT$i/$l || test -e $d/$l || echo "  ${doc#$RPM_BUILD_ROOT} points to inexistent manpage: $l"; \
This page took 0.504917 seconds and 4 git commands to generate.