xbps-bin: fix check_pkg_integrity() pkg dictionary confusion.
This commit is contained in:
parent
ab6d4a19f1
commit
7d631c5d11
@ -89,7 +89,7 @@ check_pkg_integrity(prop_dictionary_t pkgd, const char *pkgname)
|
|||||||
opkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
opkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
||||||
if (opkgd == NULL) {
|
if (opkgd == NULL) {
|
||||||
/* find virtual pkg by name */
|
/* find virtual pkg by name */
|
||||||
pkgd = xbps_find_virtualpkg_dict_installed(pkgname,
|
opkgd = xbps_find_virtualpkg_dict_installed(pkgname,
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
if (opkgd == NULL) {
|
if (opkgd == NULL) {
|
||||||
@ -141,8 +141,8 @@ do { \
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* Execute pkg checks */
|
/* Execute pkg checks */
|
||||||
RUN_PKG_CHECK(requiredby, pkgd);
|
RUN_PKG_CHECK(requiredby, pkgd ? pkgd : opkgd);
|
||||||
RUN_PKG_CHECK(autoinstall, pkgd);
|
RUN_PKG_CHECK(autoinstall, pkgd ? pkgd : opkgd);
|
||||||
RUN_PKG_CHECK(files, filesd);
|
RUN_PKG_CHECK(files, filesd);
|
||||||
RUN_PKG_CHECK(symlinks, filesd);
|
RUN_PKG_CHECK(symlinks, filesd);
|
||||||
RUN_PKG_CHECK(rundeps, propsd);
|
RUN_PKG_CHECK(rundeps, propsd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user