falconindy / pkgbuild-introspection

Tools for generating .SRCINFO files and PKGBUILD data extraction
MIT License
39 stars 9 forks source link

mkaurball fails with "Expected tarball name not found" because of colon #6

Closed badboy closed 10 years ago

badboy commented 10 years ago

I had a PKGBUILD with epoch= in it. mkaurball failed with:

ERROR: Expected tarball name not found: packagename-:3.9.2-2.src.tar.gz

Line 209 of the installed mkaurball (line 43 here) is:

  tarball_fullname=$tarball_basename-${epoch+$epoch:}$pkgver-$pkgrel.src.tar.gz

This returns : if epoch is set to the empty value. Any chance to fix this?

falconindy commented 10 years ago

Well, in general, don't do that ;)

But yes, this can and should be fixed. Its a one character addition.

badboy commented 10 years ago

:+1: I did it by accident and it's already fixed in my PKGBUILD. Still good to see a fix.

falconindy commented 10 years ago

bfb715cda fixes this. Thanks for the report!