socsvn commit: r254597 - soc2013/mattbw/backend
mattbw at FreeBSD.org
mattbw at FreeBSD.org
Thu Jul 11 04:01:45 UTC 2013
Author: mattbw
Date: Thu Jul 11 04:01:44 2013
New Revision: 254597
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254597
Log:
also use origin mapping if categories exist but could not be mapped
Modified:
soc2013/mattbw/backend/group.c
Modified: soc2013/mattbw/backend/group.c
==============================================================================
--- soc2013/mattbw/backend/group.c Thu Jul 11 03:57:53 2013 (r254596)
+++ soc2013/mattbw/backend/group.c Thu Jul 11 04:01:44 2013 (r254597)
@@ -99,10 +99,12 @@
assert(category != NULL);
group = group_from_port_dir(pkg_category_name(category));
- } else {
+ }
+
+ /* Fallback to checking the origin if category mapping failed. */
+ if (group == PK_GROUP_ENUM_UNKNOWN) {
const char *origin;
- /* Fallback to checking the origin. */
origin = NULL;
if (pkg_get(pkg, PKG_ORIGIN, &origin) == EPKG_OK) {
assert(origin != NULL);
More information about the svn-soc-all
mailing list