Skip to content

Instantly share code, notes, and snippets.

@Duncaen
Created March 29, 2015 17:33
Show Gist options
  • Select an option

  • Save Duncaen/8b8f850cde2b40a25a25 to your computer and use it in GitHub Desktop.

Select an option

Save Duncaen/8b8f850cde2b40a25a25 to your computer and use it in GitHub Desktop.
stdin
diff --git lib/transaction_ops.c lib/transaction_ops.c
index 46d129e..b852df1 100644
--- lib/transaction_ops.c
+++ lib/transaction_ops.c
@@ -112,10 +112,10 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool reinstall,
/* not found */
return ENOENT;
}
- pkg_repod = xbps_repo_get_pkg(repo, pkg);
+ pkg_repod = xbps_repo_get_pkg(repo, pkg) || xbps_repo_get_virtualpkg(repo, pkg);
} else {
/* find update from rpool */
- pkg_repod = xbps_rpool_get_pkg(xhp, pkg);
+ pkg_repod = xbps_rpool_get_pkg(xhp, pkg) || xbps_rpool_get_virtualpkg(xhp, pkg);
}
if (pkg_repod == NULL) {
/* not found */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment