Oops, minor mistake in previous commit

This commit is contained in:
rdb 2009-11-29 14:41:09 +00:00
parent 11e4f386b7
commit 4eaf559c0a
1 changed files with 1 additions and 1 deletions

View File

@ -1130,7 +1130,7 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
if (have_all_pkgs):
return
if (pkgconfig != None and libs != None and len(libs) > 0):
if (pkgconfig != None and (libs == None or len(libs) == 0)):
if (pkg in PkgListGet()):
print "%sWARNING:%s Could not locate package %s, excluding from build" % (GetColor("red"), GetColor(), pkgconfig)
PkgDisable(pkg)