Date: Thu, 11 Jul 2013 04:01:44 GMT From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r254597 - soc2013/mattbw/backend Message-ID: <201307110401.r6B41iB1069695@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307110401.r6B41iB1069695>