From: Roman I Khimov Date: Wed, 1 Apr 2009 00:15:28 +0000 (+0000) Subject: package.bbclass: fix globbing for mask-like files X-Git-Tag: Release-2010-05/1~3716 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462a9789b27b105282b99185a26e58f7c523647b;p=openembedded.git package.bbclass: fix globbing for mask-like files 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. Signed-off-by: Koen Kooi --- diff --git a/classes/package.bbclass b/classes/package.bbclass index 7a61c5a0fb..8a77369682 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: