xbps-pkgdb: remove unneeded stuff from unregister_pkg().

--HG--
extra : convert_revision : 2482d7b37d913657fc274b4546e0ac995ed2fda4
This commit is contained in:
Juan RP 2008-12-21 06:15:56 +01:00
parent f2b90d42aa
commit 017b192a85

View file

@ -116,12 +116,6 @@ unregister_pkg(prop_dictionary_t dict, const char *pkgname, const char *dbfile)
}
prop_array_remove(array, i);
if (!xbps_add_obj_to_dict(dict, array, "packages")) {
printf("=> ERROR: couldn't unregister %s from database\n",
pkgname);
exit(1);
}
write_plist_file(dict, dbfile);
}