diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-11-05 15:38:08 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-11-05 15:38:08 +0100 |
commit | f372e877cb32a6c009e29ff9ddf1a14f8b2fd216 (patch) | |
tree | be50c72a1a883aa07cad805d44a0cda906285997 /MgaRepo/commands/rpmlog.py | |
parent | 8f51e35c875c9cbb4637cbf8796ee66a871ba57f (diff) | |
download | mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.gz mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.bz2 mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.xz mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.zip |
Revert to 1.12.3 state
Diffstat (limited to 'MgaRepo/commands/rpmlog.py')
-rw-r--r-- | MgaRepo/commands/rpmlog.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/MgaRepo/commands/rpmlog.py b/MgaRepo/commands/rpmlog.py index 693fe8b..88dfc4b 100644 --- a/MgaRepo/commands/rpmlog.py +++ b/MgaRepo/commands/rpmlog.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # # This program will convert the output of "svn log" to be suitable # for usage in an rpm %changelog session. @@ -24,7 +25,6 @@ Options: -p Append changelog found in .spec file -s Sort changelog entries, even from the old log -M Do not use the mirror (use the main repository) - -F Do not use full name & email for packagers where available -h Show this message Examples: @@ -45,15 +45,13 @@ def parse_options(): action="store_true") parser.add_option("-M", "--no-mirror", action="callback", callback=disable_mirror) - parser.add_option("-F", dest="fullnames", default=True, - action="store_false") opts, args = parser.parse_args() if len(args) != 1: raise Error("invalid arguments") opts.pkgdirurl = layout.package_url(args[0]) return opts -def rpmlog(pkgdirurl, revision, size, template, oldlog, usespec, sort, fullnames): +def rpmlog(pkgdirurl, revision, size, template, oldlog, usespec, sort): another = None if usespec: svn = SVN() @@ -61,10 +59,7 @@ def rpmlog(pkgdirurl, revision, size, template, oldlog, usespec, sort, fullnames rawspec = svn.cat(specurl, rev=revision) spec, another = split_spec_changelog(StringIO(rawspec)) newlog = get_changelog(pkgdirurl, another=another, rev=revision, - size=size, sort=sort, template=template, oldlog=oldlog, fullnames=fullnames) - # make sure stdout support unicode, otherwise it'll croak when encountered - if not "UTF-8" in sys.stdout.encoding: - sys.stdout = open(sys.stdout.fileno(), mode="w", encoding="UTF-8") + size=size, sort=sort, template=template, oldlog=oldlog) sys.stdout.writelines(newlog) def main(): |