public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] qfile assumes category names contain a hyphen
@ 2009-03-16 16:34 Amit Dor-Shifer
  2009-03-16 17:49 ` Alec Warner
  2009-03-16 18:35 ` Ned Ludd
  0 siblings, 2 replies; 13+ messages in thread
From: Amit Dor-Shifer @ 2009-03-16 16:34 UTC (permalink / raw
  To: gentoo-portage-dev

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?

10x,
Amit





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-04-18 17:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-16 16:34 [gentoo-portage-dev] qfile assumes category names contain a hyphen Amit Dor-Shifer
2009-03-16 17:49 ` Alec Warner
2009-03-16 18:35 ` Ned Ludd
2009-03-16 21:05   ` Mike Frysinger
2009-03-16 22:49     ` Ned Ludd
2009-03-16 23:45       ` Mike Frysinger
2009-03-17 16:59         ` Ned Ludd
2009-03-17 17:27           ` Mike Frysinger
2009-03-17 17:50             ` Ned Ludd
2009-04-16 23:05               ` Ned Ludd
2009-04-18 16:55                 ` Mike Frysinger
2009-04-18 17:08                   ` Ned Ludd
2009-04-18 17:15                     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox