fixed group

This commit is contained in:
Beth Parker 2017-09-12 14:52:14 -05:00
parent 967e113caf
commit 58a68d0f44

View file

@ -22,7 +22,7 @@ class Package(object):
self.path = os.path.join(self.buildPath, name)
self.repo = False
self.aur = False
self.isgroup = False
self.group = False
self.upToDate = False
self.aurdeps = []
self.pkgs = ""
@ -59,7 +59,7 @@ class Package(object):
def isgroup(self):
response = requests.get("https://aur.archlinux.org/pkgbase/%s" % (self.name))
if response.status_code < 400:
self.isgroup = True
self.group = True
def clone(self):
git.clone("https://aur.archlinux.org/%s.git" % (self.name), self.path)
@ -139,7 +139,7 @@ class Package(object):
raise BuildError
for line in open("/var/log/aur_repo/%s.log" % self.name).read().split("\n"):
if "Finished making" in line:
if(self.isgroup):
if(self.group):
self.pkgs = sh.glob("%s/*.pkg.*" % (self.path))
else:
self.pkgs = sh.glob("%s/%s*.pkg.*" % (self.path,self.name))[0]