From 96a9e6925bdf75ca213461d8c574fb69294721d7 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Tue, 17 Feb 2009 14:16:59 +0000 Subject: Remove the changelog from the new spec The putsrpm command was properly creating the misc/pkgname/log file but it was not removing it from the spec. --- RepSys/rpmutil.py | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.1