Removed self.repo check
This commit is contained in:
parent
58a68d0f44
commit
53ea18f047
1 changed files with 1 additions and 12 deletions
|
@ -26,8 +26,6 @@ class Package(object):
|
||||||
self.upToDate = False
|
self.upToDate = False
|
||||||
self.aurdeps = []
|
self.aurdeps = []
|
||||||
self.pkgs = ""
|
self.pkgs = ""
|
||||||
self.inrepo()
|
|
||||||
if not self.repo:
|
|
||||||
self.inaur()
|
self.inaur()
|
||||||
if self.aur:
|
if self.aur:
|
||||||
self.isgroup()
|
self.isgroup()
|
||||||
|
@ -42,15 +40,6 @@ class Package(object):
|
||||||
except BuildError:
|
except BuildError:
|
||||||
print("Aborting build of %s" % self.name)
|
print("Aborting build of %s" % self.name)
|
||||||
|
|
||||||
def inrepo(self):
|
|
||||||
try:
|
|
||||||
results = pacman("-Ssq", self.name)
|
|
||||||
except sh.ErrorReturnCode_1:
|
|
||||||
return
|
|
||||||
for result in results.split("\n"):
|
|
||||||
if self.name == result:
|
|
||||||
self.repo = True
|
|
||||||
|
|
||||||
def inaur(self):
|
def inaur(self):
|
||||||
response = requests.get("https://aur.archlinux.org/packages/%s" % (self.name))
|
response = requests.get("https://aur.archlinux.org/packages/%s" % (self.name))
|
||||||
if response.status_code < 400:
|
if response.status_code < 400:
|
||||||
|
|
Loading…
Add table
Reference in a new issue