xbps-pkgdb: update for pkgdb-0.38.

This commit is contained in:
Juan RP
2014-09-11 08:00:37 +02:00
parent fcce0a36aa
commit bd2bb98fa7
2 changed files with 25 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2013 Juan Romero Pardines.
* Copyright (c) 2014 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -47,14 +47,10 @@ check_pkg_unneeded(struct xbps_handle *xhp _unused, const char *pkgname _unused,
{
xbps_dictionary_t pkgd = arg;
if (xbps_dictionary_get(pkgd, "remove-and-update"))
xbps_dictionary_remove(pkgd, "remove-and-update");
if (xbps_dictionary_get(pkgd, "transaction"))
xbps_dictionary_remove(pkgd, "transaction");
if (xbps_dictionary_get(pkgd, "skip-obsoletes"))
xbps_dictionary_remove(pkgd, "skip-obsoletes");
xbps_dictionary_remove(pkgd, "download");
xbps_dictionary_remove(pkgd, "remove-and-update");
xbps_dictionary_remove(pkgd, "transaction");
xbps_dictionary_remove(pkgd, "skip-obsoletes");
return 0;
}