falconindy / pkgbuild-introspection

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

Use -f to check if PKGBUILD exists #7

Closed klusark closed 10 years ago

klusark commented 10 years ago

Currently if mkaurball is run in a directory without a PKGBUILD it prints

/usr/bin/mkaurball: line 200: ./PKGBUILD: No such file or directory
ERROR: Unable to source /home/joel/aur/PKGBUILD

With this change it only prints the second line as expected.

klusark commented 10 years ago

After this change I'm getting

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

after the package builds. I'm not sure how this like is related to anything else...

falconindy commented 10 years ago

Your proposal removes the sourcing of the buildfile entirely, so mkaurball can't resolve the package name.