Skip to content

Commit

Permalink
fix a HUGE bug in dependency checks
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <[email protected]>
  • Loading branch information
Kwpolska committed Aug 29, 2013
1 parent 8e4e436 commit cc6e0e6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkgbuilder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,16 @@ def depcheck(depends, pkgobj=None):
'requirement: {0}').format(fdep),
req=fdep, source=pkgobj)

if pyalpm.find_satisfier(localpkgs, dep):
parseddeps[dep] = 0
elif pyalpm.find_satisfier(syncpkgs, dep):
parseddeps[dep] = 1
elif pkgbuilder.utils.info([dep]):
parseddeps[dep] = 2
else:
raise pkgbuilder.exceptions.PackageNotFoundError(
dep, 'depcheck')
if dep not in parseddeps:
if pyalpm.find_satisfier(localpkgs, dep):
parseddeps[dep] = 0
elif pyalpm.find_satisfier(syncpkgs, dep):
parseddeps[dep] = 1
elif pkgbuilder.utils.info([dep]):
parseddeps[dep] = 2
else:
raise pkgbuilder.exceptions.PackageNotFoundError(
dep, 'depcheck')

return parseddeps

Expand Down

0 comments on commit cc6e0e6

Please sign in to comment.