Skip to content

Commit

Permalink
temporary scrivener hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Penney committed Mar 28, 2009
1 parent fbee83d commit 7deba44
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flashbake/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# Import smtplib for the actual sending function
import smtplib
from flashbake import ControlConfig, HotFiles
import fnmatch

# Import the email modules we'll need
if sys.hexversion < 0x2050000:
Expand All @@ -31,7 +32,7 @@ def parsecontrol(project_dir, control_file, config = None, results = None):
hot_files = HotFiles(project_dir)
else:
hot_files = results

if None == config:
control_config = ControlConfig()
else:
Expand All @@ -48,6 +49,13 @@ def parsecontrol(project_dir, control_file, config = None, results = None):
finally:
control_file.close()

### JCP - TEMP - START
for f in list(hot_files.control_files):
if fnmatch.fnmatch(f,'*.scriv'):
for path, dirs, files in os.walk(f):
for filename in files:
hot_files.addfile(os.path.join(path,filename))
### JCP - TEMP - END
return (hot_files, control_config)

def commit(control_config, hot_files, quiet_mins, dryrun):
Expand Down

0 comments on commit 7deba44

Please sign in to comment.