diff options
Diffstat (limited to 'bitbake-dev/lib/bb/cooker.py')
-rw-r--r-- | bitbake-dev/lib/bb/cooker.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/bitbake-dev/lib/bb/cooker.py b/bitbake-dev/lib/bb/cooker.py index bbae4f03b5..b12dc13b62 100644 --- a/bitbake-dev/lib/bb/cooker.py +++ b/bitbake-dev/lib/bb/cooker.py | |||
@@ -26,7 +26,6 @@ import sys, os, getopt, glob, copy, os.path, re, time | |||
26 | import bb | 26 | import bb |
27 | from bb import utils, data, parse, event, cache, providers, taskdata, runqueue | 27 | from bb import utils, data, parse, event, cache, providers, taskdata, runqueue |
28 | from bb import xmlrpcserver, command | 28 | from bb import xmlrpcserver, command |
29 | from sets import Set | ||
30 | import itertools, sre_constants | 29 | import itertools, sre_constants |
31 | 30 | ||
32 | class MultipleMatches(Exception): | 31 | class MultipleMatches(Exception): |
@@ -97,7 +96,7 @@ class BBCooker: | |||
97 | self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data, True) or "build" | 96 | self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data, True) or "build" |
98 | 97 | ||
99 | bbpkgs = bb.data.getVar('BBPKGS', self.configuration.data, True) | 98 | bbpkgs = bb.data.getVar('BBPKGS', self.configuration.data, True) |
100 | if bbpkgs: | 99 | if bbpkgs and len(self.configuration.pkgs_to_build) == 0: |
101 | self.configuration.pkgs_to_build.extend(bbpkgs.split()) | 100 | self.configuration.pkgs_to_build.extend(bbpkgs.split()) |
102 | 101 | ||
103 | # | 102 | # |
@@ -635,7 +634,7 @@ class BBCooker: | |||
635 | 634 | ||
636 | # Tweak some variables | 635 | # Tweak some variables |
637 | item = self.bb_cache.getVar('PN', fn, True) | 636 | item = self.bb_cache.getVar('PN', fn, True) |
638 | self.status.ignored_dependencies = Set() | 637 | self.status.ignored_dependencies = set() |
639 | self.status.bbfile_priority[fn] = 1 | 638 | self.status.bbfile_priority[fn] = 1 |
640 | 639 | ||
641 | # Remove external dependencies | 640 | # Remove external dependencies |
@@ -762,7 +761,7 @@ class BBCooker: | |||
762 | self.status = bb.cache.CacheData() | 761 | self.status = bb.cache.CacheData() |
763 | 762 | ||
764 | ignore = bb.data.getVar("ASSUME_PROVIDED", self.configuration.data, 1) or "" | 763 | ignore = bb.data.getVar("ASSUME_PROVIDED", self.configuration.data, 1) or "" |
765 | self.status.ignored_dependencies = Set(ignore.split()) | 764 | self.status.ignored_dependencies = set(ignore.split()) |
766 | 765 | ||
767 | for dep in self.configuration.extra_assume_provided: | 766 | for dep in self.configuration.extra_assume_provided: |
768 | self.status.ignored_dependencies.add(dep) | 767 | self.status.ignored_dependencies.add(dep) |
@@ -836,7 +835,11 @@ class BBCooker: | |||
836 | if dirfiles: | 835 | if dirfiles: |
837 | newfiles += dirfiles | 836 | newfiles += dirfiles |
838 | continue | 837 | continue |
839 | newfiles += glob.glob(f) or [ f ] | 838 | else: |
839 | globbed = glob.glob(f) | ||
840 | if not globbed and os.path.exists(f): | ||
841 | globbed = [f] | ||
842 | newfiles += globbed | ||
840 | 843 | ||
841 | bbmask = bb.data.getVar('BBMASK', self.configuration.data, 1) | 844 | bbmask = bb.data.getVar('BBMASK', self.configuration.data, 1) |
842 | 845 | ||
@@ -849,9 +852,8 @@ class BBCooker: | |||
849 | bb.msg.fatal(bb.msg.domain.Collection, "BBMASK is not a valid regular expression.") | 852 | bb.msg.fatal(bb.msg.domain.Collection, "BBMASK is not a valid regular expression.") |
850 | 853 | ||
851 | finalfiles = [] | 854 | finalfiles = [] |
852 | for i in xrange( len( newfiles ) ): | 855 | for f in newfiles: |
853 | f = newfiles[i] | 856 | if bbmask_compiled.search(f): |
854 | if bbmask and bbmask_compiled.search(f): | ||
855 | bb.msg.debug(1, bb.msg.domain.Collection, "skipping masked file %s" % f) | 857 | bb.msg.debug(1, bb.msg.domain.Collection, "skipping masked file %s" % f) |
856 | masked += 1 | 858 | masked += 1 |
857 | continue | 859 | continue |