diff options
-rwxr-xr-x | scripts/reporead.py | 3 | ||||
-rw-r--r-- | settings.py | 2 | ||||
-rw-r--r-- | templates/devel/index.html | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py index 2f97bbbe..08bf038d 100755 --- a/scripts/reporead.py +++ b/scripts/reporead.py @@ -77,6 +77,9 @@ class Pkg(object): selfdict['name'] = val['name'][0] del val['name'] + if 'desc' not in val: + logger.warning("Package %s has no description" % selfdict['name']) + val['desc'] = '' if 'url' not in val: val['url'] = '' for x in val.keys(): diff --git a/settings.py b/settings.py index b0e3cf27..1d086732 100644 --- a/settings.py +++ b/settings.py @@ -60,7 +60,7 @@ if CACHE == True: MIDDLEWARE_CLASSES += ( "django.middleware.common.CommonMiddleware", "django.middleware.doc.XViewMiddleware", - "main.middleware.RequireLoginMiddleware", + "archweb_dev.main.middleware.RequireLoginMiddleware", ) ROOT_URLCONF = 'archweb_dev.urls' diff --git a/templates/devel/index.html b/templates/devel/index.html index 91055376..8c621cc5 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -102,7 +102,7 @@ </ul> <ul class="small"> {% for pkg in pkgs %} - <li><a href="/packages/{{ pkg.id }}/">{{ pkg.repo.name }}::{{ pkg.pkgname }} {{ pkg.pkgver }}</a></li> + <li><a href="/packages/{{ pkg.id }}/">{{ pkg.repo.name }}::{{ pkg.pkgname }} {{ pkg.pkgver }} {{ pkg.arch.name }}</a></li> {% endfor %} </ul> {% endif %} |