Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/osbuilder.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-02-24 14:37:24 (GMT)
committer Daniel Drake <dsd@laptop.org>2011-02-24 14:40:23 (GMT)
commitf034471cd5609c1ab0ab15396a2a4b8a48b91f47 (patch)
tree48962764a503b6b0133af0f10cea2dcd8c30019e /osbuilder.py
parented7ee28b2e2700014c984539eba84ca4fab54908 (diff)
Restrict parts glob to only catch interesting files
Emacs swap files, orig/rej files were being processed. Based on work by Martin Langhoff.
Diffstat (limited to 'osbuilder.py')
-rwxr-xr-xosbuilder.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/osbuilder.py b/osbuilder.py
index fc5d577..b8ee3cb 100755
--- a/osbuilder.py
+++ b/osbuilder.py
@@ -134,9 +134,10 @@ class Stage(object):
# find all parts to execute for this stage
partlist = []
for mod in self.osb.modules:
- matches = glob('%s/%s/%s.[0-9][0-9].*' \
- % (self.osb.moddir, mod, self.name))
- partlist.extend(matches)
+ for ext in ('py', 'sh', 'inc'):
+ matches = glob('%s/%s/%s.[0-9][0-9].*.%s' \
+ % (self.osb.moddir, mod, self.name, ext))
+ partlist.extend(matches)
# sort them
parts = {}