adding python-validators, minor dir fix to new_package.py

This commit is contained in:
brent s 2016-11-20 17:11:02 -05:00
parent 81607759fd
commit 0af206624a
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ def gui_init():
pkg['srcfile'] = re.sub('^\s*(https?|ftp).*/(.*)\s*$', '\\2', pkg['srcurl'], re.IGNORECASE)
pkg['type'] = 'release'
# And here's where we download the source file for hashing
os.makedirs(('{0}/.aur_pkgs'.format(gettempdir())), exist_ok = True)
pkg['src_dl'] = "{0}/.aur_pkgs/{1}".format(gettempdir(), pkg['srcfile'])
print("Please wait while we download {0} to {1}...\n".format(pkg['srcfile'], pkg['src_dl']))
datastream = urlopen(pkg['srcurl'])

@ -1 +1 @@
Subproject commit 0d69e8dcb1d9b9422026234754651b6aafb2c0be
Subproject commit c7da872b92c3d01a69ab2938915867be896817e8