db: Remove query parameter to diff

Matthew argues we can add this at a later time.
This commit is contained in:
Colin Walters 2015-04-23 16:29:55 -04:00
parent 8bf8d71f99
commit f115d0276f
4 changed files with 2 additions and 6 deletions

View File

@ -56,7 +56,7 @@ rpmostree_print_treepkg_diff (OstreeSysroot *sysroot,
if (!ostree_sysroot_get_repo (sysroot, &repo, cancellable, error))
goto out;
if (!rpm_ostree_db_diff (repo, from_rev, to_rev, NULL,
if (!rpm_ostree_db_diff (repo, from_rev, to_rev,
&removed, &added, &modified_old, &modified_new,
cancellable, error))
goto out;

View File

@ -140,7 +140,6 @@ rpm_ostree_db_query_all (OstreeRepo *repo,
* @repo: An OSTree repository
* @orig_ref: Original ref (branch or commit)
* @new_ref: New ref (branch or commit)
* @query: (allow-none): A query, currently must be %NULL
* @out_removed: (out) (transfer container) (element-type RpmOstreePackage): Return location for removed packages
* @out_added: (out) (transfer container) (element-type RpmOstreePackage): Return location for added packages
* @out_modified_old: (out) (transfer container) (element-type RpmOstreePackage): Return location for modified old packages
@ -165,7 +164,6 @@ gboolean
rpm_ostree_db_diff (OstreeRepo *repo,
const char *orig_ref,
const char *new_ref,
GVariant *query,
GPtrArray **out_removed,
GPtrArray **out_added,
GPtrArray **out_modified_old,
@ -185,7 +183,6 @@ rpm_ostree_db_diff (OstreeRepo *repo,
guint i;
HyPackage pkg;
g_return_val_if_fail (query == NULL, FALSE);
g_return_val_if_fail (out_removed != NULL && out_added != NULL &&
out_modified_old != NULL && out_modified_new != NULL, FALSE);

View File

@ -33,7 +33,6 @@ _RPMOSTREE_EXTERN GPtrArray *rpm_ostree_db_query_all (OstreeRepo *
_RPMOSTREE_EXTERN gboolean rpm_ostree_db_diff (OstreeRepo *repo,
const char *orig_ref,
const char *new_ref,
GVariant *query,
GPtrArray **out_removed,
GPtrArray **out_added,
GPtrArray **out_modified_old,

View File

@ -12,7 +12,7 @@ print "Package list: "
for p in qr:
print p.get_nevra()
_,removed,added,modold,modnew = RpmOstree.db_diff(r, ref + '^', ref, None, None)
_,removed,added,modold,modnew = RpmOstree.db_diff(r, ref + '^', ref, None)
for p in removed:
print "D " + p.get_nevra()
for p in added: