Permalink
Browse files

Apparently fxmanifest doesn't always exist

We need to make sure we don't blow up trying to read it if it doesn't.
  • Loading branch information...
1 parent 7ccb4b5 commit 5b8b7bfac0312840a1127ca9d43a4197b0717821 @nwgh nwgh committed Mar 19, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 srunpacker.py
View
@@ -127,8 +127,11 @@ def run(self):
plmanifest = os.path.join(pageloader, 'chrome.manifest')
fxmanifest = os.path.join(self.bindir, 'chrome.manifest')
logging.debug('append %s to %s' % (plmanifest, fxmanifest))
- with file(fxmanifest, 'rb') as f:
- lines = f.readlines()
+ if os.path.exists(fxmanifest):
+ with file(fxmanifest, 'rb') as f:
+ lines = f.readlines()
+ else:
+ lines = []
with file(plmanifest, 'rb') as f:
lines.extend(f.readlines())
with file(fxmanifest, 'wb') as f:

0 comments on commit 5b8b7bf

Please sign in to comment.