* [PATCH] package.bbclass: fix globbing for mask-like files
@ 2009-04-01 10:15 Roman I Khimov
2009-04-16 11:52 ` Roman I Khimov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Roman I Khimov @ 2009-04-01 10:15 UTC (permalink / raw)
To: openembedded-devel
When a package contains two files like "name*" and "name*smth" OE can't
properly package those, looping infinetely trying to build file list. The
reason is that first file name globs to two files and OE adds them both
into the list, then globs the first one again and gets two same files, etc.
Fix that.
---
classes/package.bbclass | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 7a61c5a..8a77369 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -384,8 +384,12 @@ python populate_packages () {
globbed = glob.glob(file)
if globbed:
if [ file ] != globbed:
- files += globbed
- continue
+ if not file in globbed:
+ files += globbed
+ continue
+ else:
+ globbed.remove(file)
+ files += globbed
if (not os.path.islink(file)) and (not os.path.exists(file)):
continue
if file in seen:
--
1.6.2.1
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] package.bbclass: fix globbing for mask-like files
2009-04-01 10:15 [PATCH] package.bbclass: fix globbing for mask-like files Roman I Khimov
@ 2009-04-16 11:52 ` Roman I Khimov
2009-04-21 20:19 ` Roman I Khimov
2009-04-21 20:33 ` Koen Kooi
2 siblings, 0 replies; 4+ messages in thread
From: Roman I Khimov @ 2009-04-16 11:52 UTC (permalink / raw)
To: openembedded-devel
On Wednesday 01 April 2009 14:15:28 Roman I Khimov wrote:
> classes/package.bbclass | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
ping
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] package.bbclass: fix globbing for mask-like files
2009-04-01 10:15 [PATCH] package.bbclass: fix globbing for mask-like files Roman I Khimov
2009-04-16 11:52 ` Roman I Khimov
@ 2009-04-21 20:19 ` Roman I Khimov
2009-04-21 20:33 ` Koen Kooi
2 siblings, 0 replies; 4+ messages in thread
From: Roman I Khimov @ 2009-04-21 20:19 UTC (permalink / raw)
To: openembedded-devel
On Wednesday 01 April 2009 14:15:28 Roman I Khimov wrote:
> classes/package.bbclass | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
ping
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] package.bbclass: fix globbing for mask-like files
2009-04-01 10:15 [PATCH] package.bbclass: fix globbing for mask-like files Roman I Khimov
2009-04-16 11:52 ` Roman I Khimov
2009-04-21 20:19 ` Roman I Khimov
@ 2009-04-21 20:33 ` Koen Kooi
2 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2009-04-21 20:33 UTC (permalink / raw)
To: openembedded-devel
On 01-04-09 12:15, Roman I Khimov wrote:
> When a package contains two files like "name*" and "name*smth" OE can't
> properly package those, looping infinetely trying to build file list. The
> reason is that first file name globs to two files and OE adds them both
> into the list, then globs the first one again and gets two same files, etc.
Acked-by: Koen Kooi <koen@openembedded.org>
>
> Fix that.
> ---
> classes/package.bbclass | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/classes/package.bbclass b/classes/package.bbclass
> index 7a61c5a..8a77369 100644
> --- a/classes/package.bbclass
> +++ b/classes/package.bbclass
> @@ -384,8 +384,12 @@ python populate_packages () {
> globbed = glob.glob(file)
> if globbed:
> if [ file ] != globbed:
> - files += globbed
> - continue
> + if not file in globbed:
> + files += globbed
> + continue
> + else:
> + globbed.remove(file)
> + files += globbed
> if (not os.path.islink(file)) and (not os.path.exists(file)):
> continue
> if file in seen:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-21 21:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 10:15 [PATCH] package.bbclass: fix globbing for mask-like files Roman I Khimov
2009-04-16 11:52 ` Roman I Khimov
2009-04-21 20:19 ` Roman I Khimov
2009-04-21 20:33 ` Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.