]> git.draconx.ca Git - upkg.git/commit
upkg: Don't crash if the specified package does not exist.
authorNick Bowler <nbowler@draconx.ca>
Wed, 3 Feb 2010 02:50:39 +0000 (21:50 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 3 Feb 2010 02:50:39 +0000 (21:50 -0500)
commitc4d3d44d8e7fe87e6c889c116c267954fca9ac1e
tree870a4e4988522804c9df00ba5aa5431c423bedf8
parent152bab24521ea7cefd9e5d8cd1460c5871bff34c
upkg: Don't crash if the specified package does not exist.

Currently, g_type_module_use(pkg) will succeed even if the package does
not exist, due to the existence of shared-object-only packages.  So the
caller must look inside the UPkg structure to see if anything was
actually opened.  In the future, pending tools to create the things,
such packages probably won't exist and this hack can be removed.
src/upkg.c