rebuild-scripts bumpspecfile.py,1.19,1.20
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Sun Mar 9 01:06:08 UTC 2008
- Previous message (by thread): rebuild-scripts bumpspecfile.py,1.18,1.19
- Next message (by thread): rpms/twinkle/devel twinkle-1.2-gcc43.patch, NONE, 1.1 sources, 1.5, 1.6 .cvsignore, 1.5, 1.6 twinkle.spec, 1.10, 1.11 twinkle-1.1-gcc43.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mschwendt
Update of /cvs/fedora/rebuild-scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20999
Modified Files:
bumpspecfile.py
Log Message:
bump unrecognised spec files right-most in the "Release:" line
Index: bumpspecfile.py
===================================================================
RCS file: /cvs/fedora/rebuild-scripts/bumpspecfile.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- bumpspecfile.py 9 Mar 2008 00:47:34 -0000 1.19
+++ bumpspecfile.py 9 Mar 2008 01:06:08 -0000 1.20
@@ -47,8 +47,19 @@
(self.lines[i], n) = bumpit.subn(bumpit_func, self.lines[i], 1)
if n: # bumped
return
+
# Here, no line matched at all.
- # TODO: Bump ^Release: ... line least-insignificant.
+ # Happens with macro-overloaded spec files e.g.
+ # Bump ^Release: ... line least-insignificant.
+ for i in range(len(self.lines)):
+ if self.lines[i].startswith('Release:'):
+ old = self.lines[i][len('Release:'):].rstrip()
+ new = self.increaseFallback(old)
+ if self.verbose:
+ self.debugdiff(old, new)
+ self.lines[i] = self.lines[i].replace(old, new)
+ return
+
if self.verbose:
print >> sys.stderr, 'ERROR: No release value matched:', self.filename
sys.exit(1)
- Previous message (by thread): rebuild-scripts bumpspecfile.py,1.18,1.19
- Next message (by thread): rpms/twinkle/devel twinkle-1.2-gcc43.patch, NONE, 1.1 sources, 1.5, 1.6 .cvsignore, 1.5, 1.6 twinkle.spec, 1.10, 1.11 twinkle-1.1-gcc43.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list