Define XBPS_PKGINDEX_VERSION constant and use it.

--HG--
extra : convert_revision : e5c982e083d1a03b57feb71799619e7cbbae4239
This commit is contained in:
Juan RP 2009-04-03 19:55:57 +02:00
parent a6657b74ca
commit dfeb2f4143
2 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,7 @@ repoidx_getdict(const char *pkgdir)
prop_dictionary_set_cstring_nocopy(dict,
"location-local", pkgdir);
prop_dictionary_set_cstring_nocopy(dict,
"pkgindex-version", "1.0");
"pkgindex-version", XBPS_PKGINDEX_VERSION);
}
free(plist);

View File

@ -51,6 +51,9 @@
#define XBPS_PKGPROPS "props.plist"
#define XBPS_PKGFILES "files.plist"
/* Current version of the package index format. */
#define XBPS_PKGINDEX_VERSION "1.0"
/* Verbose messages */
#define XBPS_VERBOSE 0x00000001