archlinuxcn / lilac

Lilac is the build bot for archlinuxcn
GNU General Public License v3.0
114 stars 40 forks source link

Allow to extract arrays from PKGBUILD #85

Closed renyuneyun closed 5 years ago

renyuneyun commented 5 years ago

Close #67 ?

lilydjwg commented 5 years ago

Also, can you raise an error if bash fails or the variable isn't read?

renyuneyun commented 5 years ago

Changed to use tempfile and with. Also slightly changed the function signature.

Exported in api and lilaclib. Not sure if there are any requirements in ordering.

Exception is raised by subprocess.run(), of type CalledProcessError, with stderr supplied