[Pkg-debile-commits] [debile-master] 02/28: Added dput-ng profile generation
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 28e312b8a5dfffcc55390d0d2025ea08ee3852f8
Author: Léo Cavaillé <leo at cavaille.net>
Date: Fri Aug 16 22:27:05 2013 +0200
Added dput-ng profile generation
---
lucy/archive.py | 11 +++++++++--
lucy/templates/dput-ng/profile-user.json | 7 +++++++
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/lucy/archive.py b/lucy/archive.py
index 8fea96e..4cbb6ae 100644
--- a/lucy/archive.py
+++ b/lucy/archive.py
@@ -132,8 +132,15 @@ class UserRepository:
def delete_repository(self):
return
- def generate_dputcf(self):
- return
+ def generate_dputprofile(self):
+ jinjafile = os.path.join(
+ os.path.dirname(__file__),
+ "templates",
+ "dput-ng",
+ "profile-user.json")
+ template = Template(open(jinjafile).read())
+ return template.render(
+ incoming=os.path.join(self.incoming_path, 'source'))
diff --git a/lucy/templates/dput-ng/profile-user.json b/lucy/templates/dput-ng/profile-user.json
new file mode 100644
index 0000000..2d7d7f2
--- /dev/null
+++ b/lucy/templates/dput-ng/profile-user.json
@@ -0,0 +1,7 @@
+{
+ "fqdn": "",
+ "incoming": "{{incoming}}",
+ "login": "*",
+ "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