rebuild-scripts bumpspecfile.py,1.11,1.12
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Sat Mar 8 21:48:40 UTC 2008
Author: mschwendt
Update of /cvs/fedora/rebuild-scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21089
Modified Files:
bumpspecfile.py
Log Message:
try MAILTO env after RPM_PACKAGER env
Index: bumpspecfile.py
===================================================================
RCS file: /cvs/fedora/rebuild-scripts/bumpspecfile.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- bumpspecfile.py 8 Mar 2008 21:47:47 -0000 1.11
+++ bumpspecfile.py 8 Mar 2008 21:48:40 -0000 1.12
@@ -153,9 +153,11 @@
userstring = os.getenv('RPM_PACKAGER')
if not userstring and not opts.userstring:
- print 'ERROR: Set $RPM_PACKAGER environment variable or use option -u!'
- sys.exit(errno.EINVAL)
- elif opts.userstring:
+ userstring = os.getenv('MAILTO')
+ if not userstring:
+ print 'ERROR: Set $RPM_PACKAGER environment variable or use option -u!'
+ sys.exit(errno.EINVAL)
+ if opts.userstring:
userstring = opts.userstring
for aspec in args:
More information about the fedora-extras-commits
mailing list