diff options
-rw-r--r-- | RepSys/rpmutil.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index c67c17e..d0985ef 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -285,8 +285,12 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None, specpath = specpath fspec = open(specpath) spec, chlog = log.split_spec_changelog(fspec) + chlog.seek(0) spec.seek(0) fspec.close() + fspec = open(specpath, "w") + fspec.writelines(spec) + fspec.close() oldurl = baseold or config.get("log", "oldurl") pkgoldurl = mirror._joinurl(oldurl, srpm.name) svn.mkdir(pkgoldurl, noerror=1, |