[Pkg-debile-commits] [debile-master] 03/28: Adds fqdn and login to dput-ng proposed config
Léo Cavaillé
leo.cavaille-guest at alioth.debian.org
Wed Aug 21 13:36:49 UTC 2013
This is an automated email from the git hooks/post-receive script.
leo.cavaille-guest pushed a commit to branch master
in repository debile-master.
commit dbaba55eed58e7a7a79372b0367c805bba59ba66
Author: Léo Cavaillé <leo at cavaille.net>
Date: Fri Aug 16 22:38:03 2013 +0200
Adds fqdn and login to dput-ng proposed config
---
lucy/archive.py | 4 +++-
lucy/templates/dput-ng/profile-user.json | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/lucy/archive.py b/lucy/archive.py
index 4cbb6ae..0739965 100644
--- a/lucy/archive.py
+++ b/lucy/archive.py
@@ -140,7 +140,9 @@ class UserRepository:
"profile-user.json")
template = Template(open(jinjafile).read())
return template.render(
- incoming=os.path.join(self.incoming_path, 'source'))
+ incoming = os.path.join(self.incoming_path, 'source'),
+ username = self.user.login,
+ debile_fqdn = self.config.get('paths', 'debile_fqdn'))
diff --git a/lucy/templates/dput-ng/profile-user.json b/lucy/templates/dput-ng/profile-user.json
index 2d7d7f2..33e3c00 100644
--- a/lucy/templates/dput-ng/profile-user.json
+++ b/lucy/templates/dput-ng/profile-user.json
@@ -1,7 +1,7 @@
{
- "fqdn": "",
+ "fqdn": "{{debile_fqdn}}",
"incoming": "{{incoming}}",
- "login": "*",
+ "login": "{{username}}",
"meta": "debian",
"method": "sftp"
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list