bodhi.spec | 2 +-
bodhi/tools/metrics.py | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 79b689700e4141178512a7a7e4ff965effb781d5
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 28 14:25:34 2011 -0400
Minor tweak
diff --git a/bodhi/tools/metrics.py b/bodhi/tools/metrics.py
index 059b8c1..2e9ffeb 100755
--- a/bodhi/tools/metrics.py
+++ b/bodhi/tools/metrics.py
@@ -145,6 +145,7 @@ def main():
data['deltas'].sort()
print " * %d updates" % data['num_updates']
+ print " * %d packages updated" % (len(data['packages']))
for status in statuses:
print " * %d %s updates" % (data['num_%s' % status],
status)
for type in types:
@@ -192,7 +193,6 @@ def main():
data['deltas'][len(data['deltas']) / 2].days)
print " * mode = %d days" % (
sorted(data['occurrences'].items(), key=itemgetter(1))[-1][0])
- print " * %d packages updated" % (len(data['packages']))
#for package in sorted(data['packages'].items(), key=itemgetter(1),
reverse=True):
# print " * %s: %d" % (package[0].name, package[1])
print
commit 8276228bf02f2fc95bd24e350b707c75950a3988
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 28 14:25:10 2011 -0400
Fix our "critpath pushed to stable w/o karma" metric
diff --git a/bodhi/tools/metrics.py b/bodhi/tools/metrics.py
index bd40eff..059b8c1 100755
--- a/bodhi/tools/metrics.py
+++ b/bodhi/tools/metrics.py
@@ -134,7 +134,8 @@ def main():
if status in ('testing', 'pending'):
data['num_critpath_unapproved'] += 1
data['num_critpath'] += 1
- if not feedback_done:
+ #if not feedback_done:
+ if update.status == 'stable' and update.karma == 0:
data['critpath_without_karma'].add(update)
if testingtime_done:
data['num_tested'] += 1
@@ -180,7 +181,7 @@ def main():
print " * %d updates were pushed to stable with negative karma
(%0.2f%%)" % (
data['stable_with_negative_karma'],
float(data['stable_with_negative_karma']) / data['num_stable'] * 100)
# TODO: pushed with negative karma
- print " * %d critical path updates pushed *without* karma" % (
+ print " * %d critical path updates pushed to stable *without* karma" %
(
len(data['critpath_without_karma']))
#for update in data['critpath_without_karma']:
# print " * %s submitted by %s" % (update.title,
update.submitter)
commit b6a4858af5e39f0d918426e440b02a6ae48adf86
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 28 14:24:32 2011 -0400
Set our mod_wsgi config to noreplace in our spec
diff --git a/bodhi.spec b/bodhi.spec
index c1bcaea..6c66491 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -106,7 +106,7 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%{python_sitelib}/%{name}/
%{_bindir}/start-%{name}
%{_bindir}/%{name}-*
-%{_sysconfdir}/httpd/conf.d/bodhi.conf
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/bodhi.conf
%dir %{_sysconfdir}/bodhi/
%attr(-,apache,root) %{_datadir}/%{name}
%attr(-,apache,root) %config(noreplace) %{_sysconfdir}/bodhi/*
Show replies by date