Bug 2558
| Summary: | gendiff gets confused by SUFFIX in the upmost directory name | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | imz <vanyaz> |
| Component: | rpm-build | Assignee: | Gleb F-Malinovskiy <glebfm> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | minor | ||
| Priority: | P5 | CC: | arseny, glebfm, imz |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
Fixed in rpm-build-4.0.4-alt26 |

Description
imz 2003-05-04 00:51:28 MSDgendiff d.SUFFIX .SUFFIX called in a directory where both d.SUFFIX d exist, doesn\'t not produce the expected. I expect the output not to depend on the contents of d, but the output includes the difference between d and d.SUFFIX. --- --- rpm-build-4.0.4-alt16 To fight this, I suggest the enhancement: --- /usr/bin/gendiff 2003-05-04 00:48:31 +0400 +++ /usr/bin/gendiff.depth0 2003-05-04 00:41:38 +0400 @@ -11,7 +11,7 @@ [ -z \"$3\" ] || echo >\"$RPM/SOURCES/$1-$3.patch\" -find \"$1\" -mindepth 1 \\( -name \"*$2\" -o -name \".*$2\" \\) -print | +find \"$1\" \\( -name \"*$2\" -o -name \".*$2\" \\) -print | while read fin; do fou=`echo \"$fin\" |sed -e \"s/$2\\$//\"`; [ -r \"$fin\" ] || fin=\"/dev/null\"