libxbps: use a new bool in struct xbps_handle to track successful initialization.

(cherry picked from commit 03374950680f6a839b1ee2df8e3a4e1dfb110fa8)
This commit is contained in:
Juan RP
2012-09-24 10:50:23 +02:00
parent 7714f0f6c5
commit e370ff0625
2 changed files with 13 additions and 6 deletions

View File

@@ -81,7 +81,7 @@
/**
* @def XBPS_PKGDB
* Filename for the master package database.
* Filename for the package database.
*/
#define XBPS_PKGDB "pkgdb.plist"
@@ -562,6 +562,10 @@ struct xbps_handle {
* - XBPS_FLAG_INSTALL_MANUAL
*/
int flags;
/**
* @private
*/
bool initialized;
};
void xbps_dbg_printf(struct xbps_handle *, const char *, ...);