Added support for using noarch packages.

--HG--
extra : convert_revision : a96166ddecb6efe65d35283f25e06a944cc4a038
This commit is contained in:
Juan RP
2009-02-16 00:39:41 +01:00
parent 4f6364a2bd
commit 6b6162bb44
10 changed files with 107 additions and 36 deletions

View File

@@ -175,7 +175,7 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
/* Temp buffer to verify pkgindex file. */
plist = xbps_append_full_path(false, dpkgidx, XBPS_PKGINDEX);
plist = xbps_get_pkg_index_plist(dpkgidx);
if (plist == NULL)
exit(EXIT_FAILURE);

View File

@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2008 Juan Romero Pardines.
* Copyright (c) 2008-2009 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -133,7 +133,7 @@ search_string_in_pkgs(prop_object_t obj, void *arg, bool *loop_done)
repofile = prop_string_cstring_nocopy(obj);
assert(repofile != NULL);
plist = xbps_append_full_path(false, repofile, XBPS_PKGINDEX);
plist = xbps_get_pkg_index_plist(repofile);
if (plist == NULL)
return EINVAL;
@@ -165,8 +165,7 @@ show_pkg_info_from_repolist(prop_object_t obj, void *arg, bool *loop_done)
/* Get the location */
repofile = prop_string_cstring_nocopy(obj);
/* Get string for pkg-index.plist with full path. */
plist = xbps_append_full_path(false, repofile, XBPS_PKGINDEX);
plist = xbps_get_pkg_index_plist(repofile);
if (plist == NULL)
return EINVAL;