Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640342 - sys-apps/portage: port ignored for rsync with sync-uri = ssh://user@host:port/
Summary: sys-apps/portage: port ignored for rsync with sync-uri = ssh://user@host:port/
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 240187
  Show dependency tree
 
Reported: 2017-12-09 03:18 UTC by Zac Medico
Modified: 2021-02-24 22:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2017-12-09 03:18:37 UTC
The RsyncSync code ignores the ssh port from sync-uri here, though PORTAGE_SSH_OPTS can also be used to set the port:


try:
	self.proto, user_name, hostname, port = re.split(
		r"(rsync|ssh)://([^:/]+@)?(\[[:\da-fA-F]*\]|[^:/]*)(:[0-9]+)?",
		syncuri, maxsplit=4)[1:5]
except ValueError:
	writemsg_level("!!! sync-uri is invalid: %s\n" % syncuri,
		noiselevel=-1, level=logging.ERROR)
	return (1, False)

self.ssh_opts = self.settings.get("PORTAGE_SSH_OPTS")