Bug#796868: dput-ng: Missing Recommends on python-paramiko causes error with scp uploads

2016-06-01 Thread Luca Capello
user luca.cape...@infomaniak.com
usertag 796868 + infomaniak.com-packaging
thanks

Hi there!

On Tue, 25 Aug 2015 08:23:15 +0100, Neil Williams wrote:
> Installing python-paramiko fixes the problem, allowing the simulation to 
> complete.

FYI, this "Recommends:" is only visible via the following chain:
=
$ dpkg-query -s dput-ng | grep python-dput
Depends: python:any, python-dput (= 1.8)
$ dpkg-query -s python-dput | grep python-paramiko
Recommends: lintian, python-distro-info, python-paramiko, python-validictory, 
openssh-client, debian-keyring
$
=

There is no other information, so something should be added at least in
the manpage, here instead a full patch:

--8<---cut here---start->8---
From 89e1c41953d56a00a05184801fffa112301d9ef8 Mon Sep 17 00:00:00 2001
From: Luca Capello 
Date: Wed, 1 Jun 2016 17:28:58 +0200
Subject: [PATCH] docs/man/dput5.man: (#796868) python-paramiko for scp/sftp

---
 debian/changelog| 7 ++-
 debian/control  | 4 +++-
 docs/man/dput.5.man | 7 ---
 3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 051c1a7..08e5c6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,13 @@
 dput-ng (1.11) UNRELEASED; urgency=medium
 
+  [ Vincent Bernat ]
   * Add {wheezy,squeeze}-backports-sloppy suites. (Closes: #798688)
 
- -- Vincent Bernat   Sun, 11 Oct 2015 09:29:11 +0200
+  [ Luca Capello ]
+  * debian/control, docs/man/dput.5.man:
++ python-paramiko is required for scp/sftp methods (Closes: #796868).
+
+ -- Luca Capello   Wed, 01 Jun 2016 17:22:32 +0200
 
 dput-ng (1.10) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index da441e5..5873788 100644
--- a/debian/control
+++ b/debian/control
@@ -33,7 +33,7 @@ Conflicts: dput
 Replaces: dput
 Provides: dput
 Depends: ${misc:Depends}, ${python:Depends}, python-dput (= ${binary:Version})
-Recommends: bash-completion
+Recommends: bash-completion, python-paramiko
 Description: next generation Debian package upload tool
  dput-ng is a Debian package upload tool which provides an easy to use
  interface to Debian (like) package archive hosting facilities. It allows
@@ -47,6 +47,8 @@ Description: next generation Debian package upload tool
  .
  dput-ng aims to be backwards compatible with dput in command-line flags,
  configuration files, and expected behavior.
+ .
+ The recommended package python-paramiko is needed to upload via SSH.
 
 Package: python-dput
 Architecture: all
diff --git a/docs/man/dput.5.man b/docs/man/dput.5.man
index 482c870..d7158db 100644
--- a/docs/man/dput.5.man
+++ b/docs/man/dput.5.man
@@ -182,9 +182,10 @@ are supported:
* 'http' or 'https':: Use HTTP or HTTPS to upload files
* 'local':: Upload to a locally mounted location of the file system.
  Internally this calls *install(1)*.
-   * 'scp':: Use scp to upload files. *This method is deprecated*, use 
'sftp'
-   instead when possible.
-   * 'sftp':: Use the sftp protocol (a secured file transfer via SSH).
+   * 'scp':: Use scp to upload files (it requires python-paramiko).
+   This method is deprecated*, use 'sftp' instead when possible.
+   * 'sftp':: Use the sftp protocol (a secured file transfer via
+   SSH, it requires python-paramiko).
 
* *dput-ng* does not support 'rsync'.
 
-- 
2.1.4
--8<---cut here---end--->8---

Thx, bye,
Gismo / Luca

-- 
Luca Capello
Administrateur GNU/Linux

Infomaniak Network SA


signature.asc
Description: Digital signature


Bug#796868: dput-ng: Missing Recommends on python-paramiko causes error with scp uploads

2015-08-25 Thread Neil Williams
Package: dput-ng
Version: 1.10
Severity: important

$ dput -s lava-production 
/home/neil/code/lava/packaging/alioth/build-area/lava-tool_0.10-1_amd64.changes
Not uploading for real - dry run
Uploading lava-tool using scp to lava-production (host: repo.linaro.org; 
directory: /srv/repos/ubuntu/lava/incoming)
running allowed-distribution: check whether a local profile permits uploads to 
the target distribution
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running gpg: check GnuPG signatures before the upload
gpg: Signature made Thu 08 May 2014 18:51:45 BST using RSA key ID 8143B682
gpg: please do a --check-trustdb
gpg: Good signature from Neil Williams (Debian) codeh...@debian.org
gpg: aka Neil Williams (codehelp) li...@codehelp.co.uk
gpg: aka Neil Williams n...@codehelp.co.uk

failed to resolve path dput.uploaders.scp.ScpUploader: No module named paramiko
Failed to resolve method scp to an uploader class
Failed to resolve method scp to an uploader class

Installing python-paramiko fixes the problem, allowing the simulation to 
complete.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dput-ng depends on:
ii  python-dput  1.10
pn  python:any   none

Versions of packages dput-ng recommends:
ii  bash-completion  1:2.1-4.2

dput-ng suggests no packages.

-- no debconf information