Bug 223035 - ports-mgmt/portdowngrade: Error running context: Protocol not supported
Summary: ports-mgmt/portdowngrade: Error running context: Protocol not supported
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Chris Rees
Depends on:
Reported: 2017-10-15 21:02 UTC by Markus Koschany
Modified: 2017-10-15 21:59 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (crees)


Note You need to log in before you can comment on or make changes to this bug.
Description Markus Koschany 2017-10-15 21:02:20 UTC
I use FreeBSD 10.4/amd64 and execute portdowngrade inside a jail. When I try to downgrade a port to a previous version I see this error message

portdowngrade security/tor r449591

svn: E170013: Unable to connect to a repository at URL 'http://svn.freebsd.org/ports/head/security/tor'
svn: E000043: Error running context: Protocol not supported
Something went wrong with svn...  Ensure you have the correct revision!

The revision is correct. I was able to workaround this issue by modifying /usr/local/sbin/portdowngrade and changing the line 

: ${svnroot=http://svn.freebsd.org/ports/head}


 : ${svnroot=svn://svn.freebsd.org/ports/head}
Comment 1 Chris Rees freebsd_committer 2017-10-15 21:59:22 UTC
Thanks.  I've used https as that's the recommended protocol.
Comment 2 commit-hook freebsd_committer 2017-10-15 21:59:26 UTC
A commit references this bug:

Author: crees
Date: Sun Oct 15 21:58:54 UTC 2017
New revision: 452167
URL: https://svnweb.freebsd.org/changeset/ports/452167

  Fix repo protocol

  While here, add LICENSE

  PR:		ports/223035
  Submitted by:	Markus Koschany