checkin, plus new package- python-gitpython

This commit is contained in:
brent s 2016-11-12 16:44:26 -05:00
parent e2d712043b
commit 2765fde112
3 changed files with 24 additions and 3 deletions

3
.gitmodules vendored
View File

@ -148,3 +148,6 @@
[submodule "python-menu3"] [submodule "python-menu3"]
path = python-menu3 path = python-menu3
url = aur@aur.archlinux.org:python-menu3 url = aur@aur.archlinux.org:python-menu3
[submodule "python-gitpython"]
path = python-gitpython
url = aur@aur.archlinux.org:python-gitpython

View File

@ -2,9 +2,13 @@


import re import re
import os import os
import shutil
import subprocess import subprocess
import pygit2 import git # python-gitpython in AUR
import menu3 import menu3 # python-menu3 in AUR
from tempfile import gettempdir

import pprint


## SETTINGS ## ## SETTINGS ##
gpgkey = '748231EBCBD808A14F5E85D28C004C2F93481F6B' # https://wiki.archlinux.org/index.php/PKGBUILD#validpgpkeys gpgkey = '748231EBCBD808A14F5E85D28C004C2F93481F6B' # https://wiki.archlinux.org/index.php/PKGBUILD#validpgpkeys
@ -79,7 +83,20 @@ def gui_init():
pkg['conflicts'] = list(map(str, conflicts_raw.split())) pkg['conflicts'] = list(map(str, conflicts_raw.split()))
return(pkg) return(pkg)


import pprint ## MAKE SURE SOME PREREQS HAPPEN ##
def sanity_checks(pkg):
try:
os.makedirs(pkgbuild_dir)
except OSError as exception:
if exception.errno != errno.EEXIST:
raise

def aur_create(pkg):
tmpcheckout = os.path.join(gettempdir(), '.aur_pkgs.{}'.format(pkg['name']))
pygit2.clone_repository('aur@aur.archlinux.org:' + pkg['name'], tmpcheckout, bare=False, repository=None, remote=None, checkout_branch=None, callbacks=None)
shutil.copy2(aur_pkgs_dir + "/_docs/PKGBUILD.templates.d/gitignore", tmpcheckout + "/.gitignore")


pprint.pprint(gui_init()) pprint.pprint(gui_init())





1
python-gitpython Submodule

@ -0,0 +1 @@
Subproject commit 0b756440a8600ac3026de2e84e0039ef565c8ff6