summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/templatetags/package_extras.py40
-rw-r--r--packages/urls.py1
-rw-r--r--packages/views.py2
3 files changed, 18 insertions, 25 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index e089b723..d4d0ca1a 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -48,37 +48,31 @@ def userpkgs(user):
)
return ''
-
-def svn_link(package, svnpath):
- '''Helper function for the two real SVN link methods.'''
- parts = (package.repo.svn_root, package.pkgbase, svnpath)
- linkbase = "http://projects.archlinux.org/svntogit/%s.git/tree/%s/%s/"
- return linkbase % tuple(urlquote(part) for part in parts)
-
-@register.simple_tag
-def svn_arch(package):
- repo = package.repo.name.lower()
- return svn_link(package, "repos/%s-%s" % (repo, package.arch.name))
-
-@register.simple_tag
-def svn_trunk(package):
- return svn_link(package, "trunk")
-
@register.simple_tag
def bugs_list(package):
data = {
- 'project': package.repo.bugs_project,
- 'string': package.pkgname,
+ '@action': 'search',
+ 'title': package.pkgname,
}
- return "https://bugs.archlinux.org/?%s" % urlencode(data)
+ return "https://bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
@register.simple_tag
def bug_report(package):
data = {
- 'project': package.repo.bugs_project,
- 'product_category': package.repo.bugs_category,
- 'item_summary': '[%s]' % package.pkgname,
+ '@template': 'item',
+ 'keyword': 'packages',
+ 'title': '[%s]' % package.pkgname,
}
- return "https://bugs.archlinux.org/newtask?%s" % urlencode(data)
+ return "https://bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
+@register.simple_tag
+def flag_unfree(package):
+ data = {
+ '@template': 'item',
+ 'keyword': 'packages,unfree',
+ 'nosy': 'dev_list',
+ 'priority': 'critical',
+ 'title': '[%s] Please put your reasons here (register first if you haven\'t)' % package.pkgname,
+ }
+ return "https://bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
# vim: set ts=4 sw=4 et:
diff --git a/packages/urls.py b/packages/urls.py
index 3c2c87b0..3f0755b3 100644
--- a/packages/urls.py
+++ b/packages/urls.py
@@ -9,7 +9,6 @@ package_patterns = patterns('packages.views',
(r'^flag/done/$', 'flag_confirmed', {}, 'package-flag-confirmed'),
(r'^unflag/$', 'unflag'),
(r'^unflag/all/$', 'unflag_all'),
- (r'^download/$', 'download'),
)
urlpatterns = patterns('packages.views',
diff --git a/packages/views.py b/packages/views.py
index 5f559d6a..b64beb68 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -440,7 +440,7 @@ def flag(request, name, repo, arch):
})
send_mail(subject,
t.render(c),
- 'Arch Website Notification <nobody@archlinux.org>',
+ 'Parabola Packages <packages@list.parabolagnulinux.org>',
toemail,
fail_silently=True)