Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RPM] fix broken -u flag in buildrmps.sh
When using `buildrpms.sh -u`, the script fails with: ``` Wrote: /builddir/build/SRPMS/qgis-*.src.rpm Finish: rpmbuild -bs Finish: buildsrpm INFO: Done(qgis.spec) Config(default) 0 minutes 22 seconds INFO: Results and/or logs in: result INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot Finish: clean chroot Finish: run Source package created Source package unavailable. Abort ``` The reason was because a wrong src.rpm file name was extracted by sed. Instead of `qgis-*.src.rpm`, what was being extracted is `qgis-*.src.rpm\r` which includes a carriage return. This change removes any character at the end of the `.rpm` when extracting the file name.
- Loading branch information