archlinuxcn / lilac

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

fixed #10 by trying url patterns #11

Closed farseerfc closed 9 years ago

farseerfc commented 9 years ago

To solve #10 we will try 3 url patterns now. We may need to re-order the templates list after migration to aur4 is done.

lilydjwg commented 9 years ago

There's no need to HEAD first. Just get its content and check if it's 200. Then write the data to tar (or maybe use tarfile?).

farseerfc commented 9 years ago

Changed to write data through tarfile. This will save some external command call and file operations. I added a AurDownloadException which will be raised instead of CalledProcessException from tar command, but I am not sure where to catch this exception. I added handling for it in lilac, is it enough?