public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duplicity] epel10.3: Added patch to get scp without username working (#457680)
@ 2026-10-09 15:55 Robert Scheck
  0 siblings, 0 replies; only message in thread
From: Robert Scheck @ 2026-10-09 15:55 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/duplicity
Branch : epel10.3
Commit : f61649a3ab59651de586ebb239a7c8fec9c11431
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2008-08-08T20:14:07+00:00
Stats  : +30/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/duplicity/c/f61649a3ab59651de586ebb239a7c8fec9c11431?branch=epel10.3

Log:
Added patch to get scp without username working (#457680)

---
diff --git a/duplicity-0.4.12-scp_username.patch b/duplicity-0.4.12-scp_username.patch
new file mode 100644
index 0000000..1316686
--- /dev/null
+++ b/duplicity-0.4.12-scp_username.patch
@@ -0,0 +1,24 @@
+Patch by Kenneth Loafman <kenneth@loafman.com> for duplicity <= 0.4.12 to solve scp syntax
+regression introduced with duplicity 0.4.12. Problem is, that user@hostname:port works, but
+hostname:port doesn't any longer. This patch solves the behaviour and will be included into
+the next upstream release as well. For further information, see:
+
+ - https://savannah.nongnu.org/bugs/index.php?23988
+ - https://bugzilla.redhat.com/show_bug.cgi?id=457680
+
+--- duplicity-0.4.12/src/backends.py			2008-07-22 17:20:04.000000000 +0200
++++ duplicity-0.4.12/src/backends.py.scp_username	2008-08-03 19:58:35.000000000 +0200
+@@ -330,8 +330,11 @@
+ 						   "You can get pexpect from http://pexpect.sourceforge.net or "
+ 						   "python-pexpect from your distro's repository.")
+ 		
+-		# host string of form user@hostname:port
+-		self.host_string = parsed_url.username + "@" + parsed_url.hostname
++		# host string of form [user@]hostname
++		if parsed_url.username:
++			self.host_string = parsed_url.username + "@" + parsed_url.hostname
++		else:
++			self.host_string = parsed_url.hostname
+ 		# make sure remote_dir is always valid
+ 		if parsed_url.path:
+ 			# remove leading '/'

diff --git a/duplicity.spec b/duplicity.spec
index f96ce7b..a32666e 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,11 +3,12 @@
 Summary:        Encrypted bandwidth-efficient backup using rsync algorithm
 Name:           duplicity
 Version:        0.4.12
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv3+
 Group:          Applications/Archiving
 URL:            http://www.nongnu.org/duplicity/
 Source:         http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.gz
+Patch:          duplicity-0.4.12-scp_username.patch
 Requires:       python-GnuPGInterface >= 0.3.2, gnupg >= 1.0.6, rsync
 Requires:       pexpect >= 2.1, openssh-clients, ncftp >= 3.1.9, python-boto >= 0.9d
 BuildRequires:  python-devel >= 2.3, librsync-devel >= 0.9.6, pexpect >= 2.1
@@ -28,6 +29,7 @@ but not hard links.
 
 %prep
 %setup -q
+%patch -p1 -b .scp_username
 
 %build
 %{__python} setup.py build
@@ -49,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/%{name}*
 
 %changelog
+* Fri Aug 08 2008 Robert Scheck <robert@fedoraproject.org> 0.4.12-2
+- Added patch to get scp without username working (#457680)
+
 * Sun Jul 27 2008 Robert Scheck <robert@fedoraproject.org> 0.4.12-1
 - Upgrade to 0.4.12
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 15:55 [rpms/duplicity] epel10.3: Added patch to get scp without username working (#457680) Robert Scheck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox