Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Portage Developer (http://www.linux-archive.org/gentoo-portage-developer/)
-   -   qfile assumes category names contain a hyphen (http://www.linux-archive.org/gentoo-portage-developer/264204-qfile-assumes-category-names-contain-hyphen.html)

Alec Warner 03-16-2009 04:49 PM

qfile assumes category names contain a hyphen
 
On Mon, Mar 16, 2009 at 9:34 AM, Amit Dor-Shifer <amitds@oversi.com> wrote:
> Hi all.
>
> While working on my overlay, I stumbled on an issue where qfile refused to
> acknowledge an installed file as being part of my package.
>
> Looking into q's implementation (portage-utils-0.1.29), I see:
>
> amit0 portage-utils-0.1.29 # grep -A 2 next_entry ./libq/vdb_get_next_dir.c
> next_entry:
> ret = readdir(dir);
> if (ret == NULL) {
> --
> goto next_entry;
> if (strchr(ret->d_name, '-') == NULL)
> if ((strcmp(ret->d_name, "virtual")) != 0)
> goto next_entry;
>
> I encountered this since I used a new category, which only contained a
> single word. Adding a hyphen and a 2nd token solved my issue, and now qfile
> knows the file's association.
>
> Is this assumption, that category should be "stringA-stringB" documented
> somewhere?

It is a legacy assumption that we had prior to the introduction of the
'virtual' category into gentoo-x86.

>
> 10x,
> Amit
>
>
>
>


All times are GMT. The time now is 11:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.