From 7218d980cce4a39c2c1d12e6a6927f873244a851 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 3 Jan 2011 15:41:44 +0100 Subject: [PATCH 1/1] handle gitweb url and svn url --- module-tools.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module-tools.py b/module-tools.py index 959a0e11..09c124ab 100755 --- a/module-tools.py +++ b/module-tools.py @@ -1277,7 +1277,10 @@ def release_changelog(options, buildtag_old, buildtag_new, tagfile): os.system('rm -rf %s' % m.module_dir) m.init_module_dir() - print '* from', first, m.repository.gitweb() + if m.repository.type == "svn": + print '* from', first, m.repository.url() + else: + print '* from', first, m.repository.gitweb() specfile = m.main_specname() (tmpfd, tmpfile) = tempfile.mkstemp() @@ -1287,7 +1290,10 @@ def release_changelog(options, buildtag_old, buildtag_new, tagfile): m.init_module_dir() specfile = m.main_specname() - print '* to', second, m.repository.gitweb() + if m.repository.type == "svn": + print '* to', second, m.repository.url() + else: + print '* to', second, m.repository.gitweb() print '{{{' os.system("diff -u %s %s" % (tmpfile, specfile)) -- 2.43.0