diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-03-19 14:08:29 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-03-19 14:08:29 -0400 |
commit | 1fb49c587e439503dd747c71bae11d723b98766d (patch) | |
tree | cbaed524a7830e855156320cb2a806a5f7f60b85 /pipeline_backup.py | |
parent | a9deed01d113b9f0c24afe8f39db3f440f1dfe3c (diff) | |
download | pipeline-backup-1fb49c587e439503dd747c71bae11d723b98766d.tar.gz |
Fix spec file verification logic
Diffstat (limited to 'pipeline_backup.py')
-rwxr-xr-x | pipeline_backup.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pipeline_backup.py b/pipeline_backup.py index b32260f..e1f5e2e 100755 --- a/pipeline_backup.py +++ b/pipeline_backup.py @@ -32,10 +32,10 @@ class PipelineSpec: def verify(self): with open(self.filename, 'r') as fp: - if '@EXPLICIT' not in fp.readlines(): - return False - - return True + for line in fp: + if line.startswith('@EXPLICIT'): + return True + return False def _read(self): if not self.verify(): |