FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Portage Developer

 
 
LinkBack Thread Tools
 
Old 03-16-2009, 04:49 PM
Alec Warner
 
Default 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
>
>
>
>
 

Thread Tools




All times are GMT. The time now is 02:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org