summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-03-27 13:18:54 -0300
committerJohan Dahlin <jdahlin@litl.com>2012-04-09 12:01:17 -0300
commit639c4ed8f42dbed31a4fda8f56c25ef42e9f415f (patch)
tree8c5ca2acb49c8c44e3db8cc7893b924ec30a26a1
parent5fda6c30954e46c95eaf46370a4266c81afea6a2 (diff)
downloadgobject-introspection-639c4ed8f42dbed31a4fda8f56c25ef42e9f415f.tar.gz
giscanner: Don't run pkg-config when there's no packages specified
This prevents a simple error from pkg-config, "Must specify package names on command line" https://bugzilla.gnome.org/show_bug.cgi?id=673668
-rwxr-xr-xgiscanner/scannermain.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index bcacd0f6..794cede3 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -405,9 +405,10 @@ def scanner_main(args):
packages = set(options.packages)
packages.update(transformer.get_pkgconfig_packages())
- exit_code = process_packages(options, packages)
- if exit_code:
- return exit_code
+ if packages:
+ exit_code = process_packages(options, packages)
+ if exit_code:
+ return exit_code
ss = create_source_scanner(options, args)