libxbps: the provides obj now expects exact pkgver strings.

This reduces extra allocs and simplifies the code, which was just
there to workaround some broken pkgs anyway.
This commit is contained in:
Juan RP
2015-01-10 07:26:23 +01:00
parent dc157614d0
commit 7b3a500139
4 changed files with 18 additions and 66 deletions

View File

@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2012-2014 Juan Romero Pardines.
* Copyright (c) 2012-2015 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -48,8 +48,8 @@ provides_init(void)
a = xbps_array_create();
ATF_REQUIRE(a != NULL);
xbps_array_add_cstring_nocopy(a, "cron-daemon-0");
xbps_array_add_cstring_nocopy(a, "xbps-9999");
xbps_array_add_cstring_nocopy(a, "cron-daemon-0_1");
xbps_array_add_cstring_nocopy(a, "xbps-9999_1");
return a;
}