extras-buildsys/utils/pushscript RepoView.py,1.3,1.4
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Thu Mar 15 20:52:45 UTC 2007
- Previous message (by thread): rpms/nas/EL-4 nas.spec,1.6,1.7
- Next message (by thread): rpms/java-1.5.0-gcj/devel java-1.5.0-gcj.spec, NONE, 1.1 java-gcj-compat-sun-rmi-classpath.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6264
Modified Files:
RepoView.py
Log Message:
Set a much better page title than the default "RepoView: RepoView"
Index: RepoView.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/RepoView.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- RepoView.py 14 Dec 2006 23:01:22 -0000 1.3
+++ RepoView.py 15 Mar 2007 20:52:42 -0000 1.4
@@ -18,18 +18,11 @@
import errno, os, sys
import Utils
-def do_repoview(cfg,repodir):
+def do_repoview(cfg,repodir,title):
print 'Generating repoview in %s' % repodir
- cmd = '%s %s' % (cfg.repoview,repodir)
+ cmd = '%s -t "%s" %s' % (cfg.repoview,title,repodir)
Utils.run_and_check(cmd)
- # if there's a debug subdir, make that a repo, too.
-# dbg_repodir = os.path.join(repodir, 'debug')
-# if os.path.exists(dbg_repodir):
-# print 'Generating repoview in %s' % dbg_repodir
-# cmd = '%s %s' % (cfg.repoview,dbg_repodir)
-# Utils.run_and_check(cmd)
-
def main(cfg,dist):
if not cfg.archdict.has_key(dist):
@@ -37,12 +30,14 @@
sys.exit(errno.EINVAL)
destdir = os.path.join(cfg.treedir, dist)
- do_repoview(cfg,os.path.join(destdir, 'SRPMS'))
+ title = cfg.project_hr+' %s Source RPM Packages'%dist
+ do_repoview(cfg,os.path.join(destdir, 'SRPMS'),title)
# arch repo creation
for arch in cfg.archdict[dist]:
repodir = os.path.join(destdir, arch)
- do_repoview(cfg,repodir)
+ title = cfg.project_hr+' %s (%s)'%(dist,arch)
+ do_repoview(cfg,repodir,title)
if __name__ == '__main__':
- Previous message (by thread): rpms/nas/EL-4 nas.spec,1.6,1.7
- Next message (by thread): rpms/java-1.5.0-gcj/devel java-1.5.0-gcj.spec, NONE, 1.1 java-gcj-compat-sun-rmi-classpath.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list