[Rpm-maint] [rpm-software-management/rpm] Improve error message for Source URLs lacking tarball name (#238)
Chris Horsley
notifications at github.com
Wed Jun 21 00:56:58 UTC 2017
I was using rpmbuild to create Python RPMs based on a local tarball. I would receive this somewhat cryptic error:
```error: File /home/makerpm/rpmbuild/SOURCES: Is a directory```
After digging through the rpmbuild code for hints, it turned out that where py2pack (which I used for generating spec files) produced a spec file header of:
```Source: https://files.pythonhosted.org/packages/source/m/mixbox/```
I needed:
```Source: https://files.pythonhosted.org/packages/source/m/mixbox/mixbox-%{version}.tar.gz```
It was not obvious to me that the name of the tarball in fact needed to be in the external URL when I was building everything locally. I'd like to suggest a more explicit error if the version / tarball name cannot be extracted from the Source field.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/238
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170620/616bf680/attachment.html>
More information about the Rpm-maint
mailing list