aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2009-02-17 14:16:59 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2009-02-17 14:16:59 +0000
commit96a9e6925bdf75ca213461d8c574fb69294721d7 (patch)
treef679c2b44dd81f5364a30eb79ef823025d850349
parent9f4c06f203f16c43f1becd55fb6590e2ff18b8c6 (diff)
downloadmgarepo-96a9e6925bdf75ca213461d8c574fb69294721d7.tar
mgarepo-96a9e6925bdf75ca213461d8c574fb69294721d7.tar.gz
mgarepo-96a9e6925bdf75ca213461d8c574fb69294721d7.tar.bz2
mgarepo-96a9e6925bdf75ca213461d8c574fb69294721d7.tar.xz
mgarepo-96a9e6925bdf75ca213461d8c574fb69294721d7.zip
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.
-rw-r--r--RepSys/rpmutil.py4
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,