diff options
-rwxr-xr-x | mgagnome | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -361,7 +361,7 @@ class SpecFile(object): ] made_changes = False - with open(self.path, "rw") as f: + with open(self.path, "r") as f: data = f.read() for reason, change_to, regexp in re_clean_spec: if change_to is None: @@ -539,7 +539,7 @@ class SpecFile(object): def remove_patch(self, nr): nrs = [str(nr)] if nr == 0: nrs.append('') - with open(self.path, "rw") as f: + with open(self.path, "r") as f: data = f.read() len_before=len(data) @@ -655,7 +655,7 @@ class SpecFile(object): # XXX - doesn't handle buildrequires with version numbers :-( made_changes = False - with open(self.path, "rw") as f: + with open(self.path, "r") as f: data = f.read() data_before=data |