[Pkg-debile-commits] [debile-web] 01/01: Fix version listing at the Source version page
Jon Severinsson
jonno-guest at moszumanska.debian.org
Sat Mar 29 17:51:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
jonno-guest pushed a commit to branch master
in repository debile-web.
commit 2176be9def26de0b195e29c5caa5a23a7f9aa2b6
Author: Jon Severinsson <jon at severinsson.net>
Date: Sat Mar 29 18:50:24 2014 +0100
Fix version listing at the Source version page
---
debileweb/blueprints/frontend.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index aef0cc0..3e2240e 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -24,6 +24,7 @@
from flask import Blueprint, render_template, request, redirect
from flask.ext.jsonpify import jsonify
from sqlalchemy.orm import joinedload
+from debian.debian_support import Version
from debile.master.utils import make_session
from debile.master.orm import (Person, Builder, Suite, Component, Arch, Check,
@@ -488,8 +489,8 @@ def source(group_name, package_name, suite_or_version):
# Find all versions of this package
versions = session.query(Source.version)\
.filter(Group.name == group_name)\
- .filter(Source.name == package_name)\
- .order_by(Source.uploaded_at.desc()).all()
+ .filter(Source.name == package_name)
+ versions = sorted([x[0] for x in versions], key=Version, reverse=True)
versions_info = []
if len(versions) > 1:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list