3 commits - bodhi.cfg bodhi/controllers.py bodhi.egg-info/PKG-INFO bodhi/release.py bodhi.spec bodhi/tests
by Luke Macken
bodhi.cfg | 4 ++--
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 8 +++++++-
bodhi/controllers.py | 14 +++++++++-----
bodhi/release.py | 2 +-
bodhi/tests/test_controllers.py | 11 ++++++++++-
6 files changed, 30 insertions(+), 11 deletions(-)
New commits:
commit 4cc202354806bed9f4a5c05773621f9a844f3cf6
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Dec 22 15:13:37 2008 -0500
0.5.15
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index e17e3dd..bdeded8 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.5.14
+Version: 0.5.15
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution
Home-page: https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.spec b/bodhi.spec
index 7b07554..29f30f2 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: bodhi
-Version: 0.5.14
+Version: 0.5.15
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
@@ -113,6 +113,12 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%changelog
+* Mon Dec 22 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.15-1
+- Latest release, with more masher improvements.
+
+* Fri Dec 19 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.14-1
+- Latest upstream release, containing some masher improvements.
+
* Wed Dec 10 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.13-1
- Latest upstream release to fix various metrics/rss issues
diff --git a/bodhi/release.py b/bodhi/release.py
index a48851f..63d196d 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.14'
+VERSION = '0.5.15'
NAME = 'bodhi'
DESCRIPTION = 'Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution'
AUTHOR = 'Luke Macken'
commit 78fdd6f4120e6d773c74c28d4c17aba90905a3f9
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Dec 22 15:13:23 2008 -0500
Update our development bodhi.cfg
diff --git a/bodhi.cfg b/bodhi.cfg
index a9ef734..0e11d4a 100644
--- a/bodhi.cfg
+++ b/bodhi.cfg
@@ -5,8 +5,8 @@
# bodhi/config/app.cfg
# DATABASE
-#sqlobject.dburi="sqlite:///var/tmp/bodhi.sqlite"
-sqlobject.dburi="postgres://bodhi:B0dh1@localhost/bodhi"
+sqlobject.dburi="sqlite:///var/tmp/bodhi.sqlite"
+#sqlobject.dburi="postgres://bodhi:B0dh1@localhost/bodhi"
# If you have sqlite, here's a simple default to get you started
# in development
commit 01969d7577269ec2e353b561264b399bc2d99f55
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Dec 22 15:09:29 2008 -0500
Track down a unicode failure and add a unit test for it.
This issue still exists, and I just created a ticket to track it down:
https://fedorahosted.org/bodhi/ticket/288
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 7d6b24c..5edbaeb 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -684,11 +684,15 @@ class Root(controllers.RootController):
if len(build.updates) == 0:
build.destroySelf()
else:
- update = PackageUpdate(title=','.join(builds),
- release=release,
- submitter=identity.current.user_name,
- notes=notes, type=type_,
- close_bugs=close_bugs)
+ try:
+ update = PackageUpdate(title=','.join(builds),
+ release=release,
+ submitter=identity.current.user_name,
+ notes=notes, type=type_,
+ close_bugs=close_bugs)
+ except Exception, e:
+ log.exception(e)
+ raise
log.info("Created PackageUpdate %s" % update.title)
updates.append(update)
diff --git a/bodhi/tests/test_controllers.py b/bodhi/tests/test_controllers.py
index efec675..aa3ff1d 100644
--- a/bodhi/tests/test_controllers.py
+++ b/bodhi/tests/test_controllers.py
@@ -1138,6 +1138,15 @@ class TestControllers(testutil.DBTest):
update = PackageUpdate.byTitle(params['builds'])
assert update.request == 'testing'
testutil.create_request('/updates/request/revoke/%s' % params['builds'],
- headers=session, method='POST')
+ headers=session, method='POST')
update = PackageUpdate.byTitle(params['builds'])
assert update.request == None
+
+ def test_unicode_fail(self):
+ session = login()
+ create_release(num='8', dist='dist-f')
+ params = {'stable_karma': 3, 'builds': 'pidgin-libnotify-0.14-1.fc8', 'autokarma': True, 'inheritance': False, 'suggest_reboot': False, 'notes': u"Version 0.14 (2008-12-14):\r\n\r\n * really add option: don't show notifications when absent\r\n * Updated polish translation (Piotr Dr\u0105g)\r\n * Added russian translation (Dmitry Egorkin)\r\n * Added bulgarian translation (Dilyan Palauzov)\r\n * Added german translation (Marc Mikolits)\r\n * Added swedish translation (Jonas Granqvist)\r\n".encode('utf8'), 'request': u'Testing', 'bugs': '477267', 'unstable_karma': -3, 'type_': u'bugfix', 'close_bugs': True}
+ testutil.capture_log(['bodhi.controllers', 'bodhi.util'])
+ self.save_update(params, session)
+ update = PackageUpdate.byTitle(params['builds'])
+ assert update
15 years, 5 months
bodhi/masher.py
by Luke Macken
bodhi/masher.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cd34489551e1f2e992b2456c8d325a5c90e883e4
Author: Jesse Keating <jkeating(a)redhat.com>
Date: Thu Dec 18 15:30:25 2008 -0800
Add a -p call to mash, so that we can re-use existing repodata
diff --git a/bodhi/masher.py b/bodhi/masher.py
index fb87260..dad5e38 100644
--- a/bodhi/masher.py
+++ b/bodhi/masher.py
@@ -519,7 +519,8 @@ class MashTask(Thread):
self.mashed_repos[repo] = mashdir
comps = join(config.get('comps_dir'), 'comps-%s.xml' %
repo.split('-')[0])
- mashcmd = self.cmd % (mashdir, comps) + repo
+ updatepath = join(config.get('mashed_dir'), repo)
+ mashcmd = self.cmd % (mashdir, comps) + '-p %s ' % updatepath + repo
log.info("Running `%s`" % mashcmd)
p = subprocess.Popen(mashcmd, stdout=subprocess.PIPE, shell=True)
stdout, stderr = p.communicate()
15 years, 5 months
bodhi/metrics.py
by Luke Macken
bodhi/metrics.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 04d88b0bfa03e89b432fc2ded75af037c73f8693
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Dec 19 21:26:27 2008 -0500
Actually fix the metrics issue this time
diff --git a/bodhi/metrics.py b/bodhi/metrics.py
index c53aa07..0c0c529 100644
--- a/bodhi/metrics.py
+++ b/bodhi/metrics.py
@@ -64,9 +64,9 @@ class AllMetric(Metric):
self.timeline[update_type] = {}
def update(self, update):
- if update.status != 'stable':
+ if update.status != 'stable' or not update.date_pushed:
return
- if update.date_pushed and update.date_pushed < self.earliest:
+ if update.date_pushed < self.earliest:
self.earliest = update.date_pushed
if not self.timeline[update.type].has_key(update.date_pushed.month):
self.timeline[update.type][update.date_pushed.month] = 0
15 years, 5 months
bodhi.egg-info/PKG-INFO bodhi/release.py bodhi.spec
by Luke Macken
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 2 +-
bodhi/release.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 928811904216bf98c20d63847881b5ce12834a6b
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Dec 19 20:40:48 2008 -0500
0.5.14
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index e4dff83..e17e3dd 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.5.13
+Version: 0.5.14
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution
Home-page: https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.spec b/bodhi.spec
index fbf2632..7b07554 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: bodhi
-Version: 0.5.13
+Version: 0.5.14
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
diff --git a/bodhi/release.py b/bodhi/release.py
index 566a864..a48851f 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.13'
+VERSION = '0.5.14'
NAME = 'bodhi'
DESCRIPTION = 'Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution'
AUTHOR = 'Luke Macken'
15 years, 5 months
bodhi/config bodhi/masher.py
by Luke Macken
bodhi/config/f8-updates-testing.mash | 7 ++++---
bodhi/config/f8-updates.mash | 7 ++++---
bodhi/config/f9-updates-testing.mash | 7 ++++---
bodhi/config/f9-updates.mash | 7 ++++---
bodhi/masher.py | 8 --------
5 files changed, 16 insertions(+), 20 deletions(-)
New commits:
commit 35a823a77bf7906f7ab814ac5af8130ae3edc615
Author: Jesse Keating <jkeating(a)redhat.com>
Date: Thu Dec 18 19:07:38 2008 -0800
Use config options to get .newkey stuff, rather than post-commpose moves.
diff --git a/bodhi/config/f8-updates-testing.mash b/bodhi/config/f8-updates-testing.mash
index b23aee9..a514e74 100644
--- a/bodhi/config/f8-updates-testing.mash
+++ b/bodhi/config/f8-updates-testing.mash
@@ -1,8 +1,9 @@
# mash config file
[f8-updates-testing]
-rpm_path = %(arch)s/
-source_path = SRPMS/
+rpm_path = %(arch)s.newkey/
+source_path = SRPMS.newkey/
+debuginfo_path = %(arch)s.newkey/debug
debuginfo = True
multilib = True
multilib_method = devel
@@ -10,6 +11,6 @@ tag = dist-f8-updates-testing
inherit = False
strict_keys = True
keys = DF9B0AE9
-repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/8/%(ar...
+repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/8/%(ar...
repoviewtitle = "Fedora 8 Updates Testing - %(arch)s"
arches = i386 x86_64 ppc ppc64
diff --git a/bodhi/config/f8-updates.mash b/bodhi/config/f8-updates.mash
index 86bf7f6..510af3c 100644
--- a/bodhi/config/f8-updates.mash
+++ b/bodhi/config/f8-updates.mash
@@ -1,8 +1,9 @@
# mash config file
[f8-updates]
-rpm_path = %(arch)s/
-source_path = SRPMS/
+rpm_path = %(arch)s.newkey/
+source_path = SRPMS.newkey/
+debuginfo_path = %(arch)s.newkey/debug
debuginfo = True
multilib = True
multilib_method = devel
@@ -10,6 +11,6 @@ tag = dist-f8-updates
inherit = False
strict_keys = True
keys = 6DF2196F
-repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/8/%(arch)s/
+repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/8/%(arch)s.new...
repoviewtitle = "Fedora 8 Updates - %(arch)s"
arches = i386 x86_64 ppc ppc64
diff --git a/bodhi/config/f9-updates-testing.mash b/bodhi/config/f9-updates-testing.mash
index 35223af..f36a732 100644
--- a/bodhi/config/f9-updates-testing.mash
+++ b/bodhi/config/f9-updates-testing.mash
@@ -1,8 +1,9 @@
# mash config file
[f9-updates-testing]
-rpm_path = %(arch)s/
-source_path = SRPMS/
+rpm_path = %(arch)s.newkey/
+source_path = SRPMS.newkey/
+debuginfo_path = %(arch)s.newkey/debug
debuginfo = True
multilib = True
multilib_method = devel
@@ -10,6 +11,6 @@ tag = dist-f9-updates-testing
inherit = False
strict_keys = True
keys = DF9B0AE9
-repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/9/%(ar...
+repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/testing/9/%(ar...
repoviewtitle = "Fedora 9 Updates Testing - %(arch)s"
arches = i386 x86_64 ppc ppc64
diff --git a/bodhi/config/f9-updates.mash b/bodhi/config/f9-updates.mash
index 314934d..02aec19 100644
--- a/bodhi/config/f9-updates.mash
+++ b/bodhi/config/f9-updates.mash
@@ -1,8 +1,9 @@
# mash config file
[f9-updates]
-rpm_path = %(arch)s/
-source_path = SRPMS/
+rpm_path = %(arch)s.newkey/
+source_path = SRPMS.newkey/
+debuginfo_path = %(arch)s.newkey/debug
debuginfo = True
multilib = True
multilib_method = devel
@@ -10,6 +11,6 @@ tag = dist-f9-updates
inherit = False
strict_keys = True
keys = 6DF2196F
-repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/9/%(arch)s/
+repoviewurl = http://download.fedoraproject.org/pub/fedora/linux/updates/9/%(arch)s.new...
repoviewtitle = "Fedora 9 Updates - %(arch)s"
arches = i386 x86_64 ppc ppc64
diff --git a/bodhi/masher.py b/bodhi/masher.py
index c0c599c..fb87260 100644
--- a/bodhi/masher.py
+++ b/bodhi/masher.py
@@ -445,14 +445,6 @@ class MashTask(Thread):
newrepo = join(mashdir, repo)
arches = os.listdir(newrepo)
- # HACK.
- if 'f9' in repo or 'f8' in repo:
- log.debug("Moving each arch to arch.newkey")
- for arch in arches:
- if not arch.endswith('.newkey'):
- shutil.move(join(newrepo, arch), join(newrepo, '%s.newkey' % arch))
- arches = os.listdir(newrepo)
-
log.debug("Running sanity checks on %s" % newrepo)
# make sure the new repository has our arches
15 years, 5 months
bodhi config file and testing from git best pratices
by Till Maas
Hiyas,
I just checkouted Bodhi and setup a local test instance using make init run.
The problem is, that I want to use sqlite and therefore had to edit bodhi.cfg.
Now for some git commands, complains about bodhi.cfg not being commited. But I
do not want to commit it to my local branch, because I do not intend to submit
it as a patch and I want to generate patches with "git format-patch -n
master". How do you manage your local bodhi.cfg file or prepare patches?
Regards,
Till
15 years, 5 months
bodhi/tools
by Luke Macken
bodhi/tools/tagcheck.py | 38 ++++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)
New commits:
commit b6bb23e0c25a3afc4c593e339696593ee057671c
Author: Luke Macken <lmacken(a)redhat.com>
Date: Sat Dec 13 18:55:10 2008 -0500
Improve our bodhi-tagcheck script to work against all releases
diff --git a/bodhi/tools/tagcheck.py b/bodhi/tools/tagcheck.py
index 625fe29..e0f05f3 100755
--- a/bodhi/tools/tagcheck.py
+++ b/bodhi/tools/tagcheck.py
@@ -9,7 +9,7 @@ from sqlobject import SQLObjectNotFound
from turbogears.database import PackageHub
from bodhi.util import load_config
-from bodhi.model import PackageBuild, PackageUpdate
+from bodhi.model import PackageBuild, PackageUpdate, Release
from bodhi.buildsys import get_session
def main():
@@ -26,7 +26,8 @@ def main():
tags)
# Check all candidate updates to see if they are in a different bodhi state
- for tag in ('dist-f9-updates-candidate', 'dist-f8-updates-candidate'):
+ for release in Release.select():
+ tag = '%s-updates-candidate' % release.dist_tag
tagged = [build['nvr'] for build in koji.listTagged(tag)]
for nvr in tagged:
try:
@@ -41,22 +42,23 @@ def main():
# Make sure that all builds in koji tagged as an update exist
# in bodhi, and are in the expect state.
- for tag in ('dist-f9-updates-testing', 'dist-f9-updates',
- 'dist-f8-updates-testing', 'dist-f8-updates'):
- tagged = [build['nvr'] for build in koji.listTagged(tag)]
- for nvr in tagged:
- try:
- build = PackageBuild.byNvr(nvr)
- except SQLObjectNotFound:
- print "PackageUpdate(%s) not found!" % nvr
- continue
- if not len(build.updates):
- print "PackageBuild(%s) has no updates" % (build.nvr)
- status = 'testing' in tag and 'testing' or 'stable'
- for update in build.updates:
- if update.status != status:
- print "%s is %s in bodhi but tagged as %s in koji" % (
- update.title, update.status, tag)
+ for release in Release.select():
+ for update_tag in ('updates-testing', 'updates'):
+ tag = '%s-%s' % (release.dist_tag, update_tag)
+ tagged = [build['nvr'] for build in koji.listTagged(tag)]
+ for nvr in tagged:
+ try:
+ build = PackageBuild.byNvr(nvr)
+ except SQLObjectNotFound:
+ print "PackageUpdate(%s) not found!" % nvr
+ continue
+ if not len(build.updates):
+ print "PackageBuild(%s) has no updates" % (build.nvr)
+ status = 'testing' in tag and 'testing' or 'stable'
+ for update in build.updates:
+ if update.status != status:
+ print "%s is %s in bodhi but tagged as %s in koji" % (
+ update.title, update.status, tag)
if __name__ == '__main__':
15 years, 5 months
3 commits - bodhi.egg-info/PKG-INFO bodhi/jobs.py bodhi/model.py bodhi/release.py bodhi.spec
by Luke Macken
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 5 ++++-
bodhi/jobs.py | 4 ++--
bodhi/model.py | 4 ++--
bodhi/release.py | 2 +-
5 files changed, 10 insertions(+), 7 deletions(-)
New commits:
commit 03bb6764abf77f15f525084847ce2245f5cd7d39
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Dec 12 12:10:24 2008 -0500
Use subprocess to call rm -fr instead of using shutil.rmtree in clean_repo
diff --git a/bodhi/jobs.py b/bodhi/jobs.py
index 7ec4bca..bf3a4b6 100644
--- a/bodhi/jobs.py
+++ b/bodhi/jobs.py
@@ -18,8 +18,8 @@
"""
import os
-import shutil
import logging
+import subprocess
from os.path import isdir, realpath, dirname, join, islink, exists
from datetime import datetime
@@ -54,7 +54,7 @@ def clean_repo():
fullpath = realpath(repo)
if fullpath not in liverepos:
log.info("Removing %s" % fullpath)
- shutil.rmtree(fullpath)
+ subprocess.call(['rm', '-fr', fullpath])
log.info("clean_repo complete!")
commit 842ecf5b9c8f1668954481187a6a2ab4e5b2475e
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 16:47:05 2008 -0500
0.5.13
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index e7c6d68..e4dff83 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.5.12
+Version: 0.5.13
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution
Home-page: https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.spec b/bodhi.spec
index ab0f76b..fbf2632 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: bodhi
-Version: 0.5.12
+Version: 0.5.13
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
@@ -113,6 +113,9 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%changelog
+* Wed Dec 10 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.13-1
+- Latest upstream release to fix various metrics/rss issues
+
* Mon Nov 24 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.12-1
- Latest upstream release, to fix the 10k bug
diff --git a/bodhi/release.py b/bodhi/release.py
index 6c0cb72..566a864 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.12'
+VERSION = '0.5.13'
NAME = 'bodhi'
DESCRIPTION = 'Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution'
AUTHOR = 'Luke Macken'
commit e7d5bd8a959c2f27bbe61859b460a166426b1333
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 16:46:40 2008 -0500
Don't reset the date_pushed when a new request comes in
diff --git a/bodhi/model.py b/bodhi/model.py
index d3f072b..61f360d 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -362,7 +362,7 @@ class PackageUpdate(SQLObject):
self.request = action
self.pushed = False
- self.date_pushed = None
+ #self.date_pushed = None
flash_log("%s has been submitted for %s" % (self.title, action))
self.comment('This update has been submitted for %s' % action,
author=identity.current.user_name)
@@ -636,7 +636,7 @@ class PackageUpdate(SQLObject):
log.info("Automatically marking %s as stable" % self.title)
self.request = 'stable'
self.pushed = False
- self.date_pushed = None
+ #self.date_pushed = None
mail.send(self.submitter, 'stablekarma', self)
mail.send_admin('stablekarma', self)
if self.status == 'testing' and self.unstable_karma != 0 and \
15 years, 5 months
2 commits - bodhi/jobs.py bodhi/metrics.py
by Luke Macken
bodhi/jobs.py | 4 ++--
bodhi/metrics.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c882d90ede0f1c4e1320a5625f5a5e000d48623c
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 16:08:34 2008 -0500
Handle None date_pushed's in the bodhi.metrics.AllMetric.update method
diff --git a/bodhi/metrics.py b/bodhi/metrics.py
index e612690..c53aa07 100644
--- a/bodhi/metrics.py
+++ b/bodhi/metrics.py
@@ -66,7 +66,7 @@ class AllMetric(Metric):
def update(self, update):
if update.status != 'stable':
return
- if update.date_pushed < self.earliest:
+ if update.date_pushed and update.date_pushed < self.earliest:
self.earliest = update.date_pushed
if not self.timeline[update.type].has_key(update.date_pushed.month):
self.timeline[update.type][update.date_pushed.month] = 0
commit 45a9f1dce7e2258013bcc62992a0057079032218
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 16:03:44 2008 -0500
Schedule our refresh_metrics job to run daily, and cache_release_data to run every 12 hours
diff --git a/bodhi/jobs.py b/bodhi/jobs.py
index 7192054..7ec4bca 100644
--- a/bodhi/jobs.py
+++ b/bodhi/jobs.py
@@ -172,7 +172,7 @@ def schedule():
scheduler.add_interval_task(action=cache_release_data,
taskname='Cache release data',
initialdelay=0,
- interval=172800)
+ interval=43200)
# If we're the masher, then handle the costly metric regenration
if not config.get('masher'):
@@ -180,4 +180,4 @@ def schedule():
scheduler.add_interval_task(action=refresh_metrics,
taskname='Refresh our metrics',
initialdelay=7200,
- interval=172800)
+ interval=86400)
15 years, 5 months
2 commits - bodhi.egg-info/PKG-INFO bodhi/model.py bodhi/release.py bodhi.spec
by Luke Macken
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 5 ++++-
bodhi/model.py | 3 ++-
bodhi/release.py | 2 +-
4 files changed, 8 insertions(+), 4 deletions(-)
New commits:
commit 4ba8053cabe1a286b9461f0d0c7f2224c51595e7
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 15:46:50 2008 -0500
Fix ordering of releases on the sidebar
diff --git a/bodhi/model.py b/bodhi/model.py
index 8767c43..d3f072b 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -948,5 +948,6 @@ class Releases(Singleton):
return
rel.update(release.metrics['UpdateTypeMetric'])
releases.append(rel)
- releases.sort(lambda x, y: cmp(x['name'], y['name']))
+ releases.sort(lambda x, y: cmp(int(x['long_name'].split()[-1]),
+ int(y['long_name'].split()[-1])))
self.data = releases
commit 65735cecd4a05c48ffadd045f623d5c0bd0584ba
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Nov 24 15:07:28 2008 -0500
0.5.12
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index 195bd60..e7c6d68 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.5.11
+Version: 0.5.12
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution
Home-page: https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.spec b/bodhi.spec
index 2cacb87..ab0f76b 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: bodhi
-Version: 0.5.11
+Version: 0.5.12
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
@@ -113,6 +113,9 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%changelog
+* Mon Nov 24 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.12-1
+- Latest upstream release, to fix the 10k bug
+
* Fri Nov 21 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.11-1
- Various F10 release tweaks
diff --git a/bodhi/release.py b/bodhi/release.py
index 2addce3..6c0cb72 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.11'
+VERSION = '0.5.12'
NAME = 'bodhi'
DESCRIPTION = 'Bodhi is a modular web-system that facilitates the process of publishing updates for a Fedora-based software distribution'
AUTHOR = 'Luke Macken'
15 years, 5 months