[damned-lies] Fixed MakefileWrapper initialization
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fixed MakefileWrapper initialization
- Date: Wed, 28 Mar 2018 19:06:39 +0000 (UTC)
commit 398d787a1c84e20aedc18e2149c66b9fbcf4eb03
Author: Claude Paroz <claude 2xlibre net>
Date: Wed Mar 28 21:06:20 2018 +0200
Fixed MakefileWrapper initialization
stats/admin.py | 1 +
stats/utils.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/stats/admin.py b/stats/admin.py
index 32978b7..ef4c8dc 100644
--- a/stats/admin.py
+++ b/stats/admin.py
@@ -97,6 +97,7 @@ class BranchAdmin(admin.ModelAdmin):
class DomainAdmin(admin.ModelAdmin):
list_display = ('__str__', 'directory', 'pot_method')
+ list_filter = ('dtype',)
search_fields = ('name', 'module__name','directory', 'pot_method')
class CategoryInline(admin.TabularInline):
diff --git a/stats/utils.py b/stats/utils.py
index 4ba10ac..c611578 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -607,7 +607,7 @@ def get_ui_linguas(branch, subdir):
configureac = branch.co_path / "configure.ac"
configurein = branch.co_path / "configure.in"
for configure in [configureac, configurein]:
- found = MakefileWrapper(configure).read_variable('ALL_LINGUAS')
+ found = MakefileWrapper(branch, configure).read_variable('ALL_LINGUAS')
if found is not None:
return {'langs': found.split(),
'error': ugettext_noop("Entry for this language is not present in ALL_LINGUAS in
configure file.") }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]