On Wednesday, 21 February 2018 19:30:57 CET Andreas Tille wrote:
> > How about starting from the value given by 'git remote show -v' ? (may be
> > with a "|grep debian.org" )
> For a totally random example I get:
> $ git remote -v show
> origin  g...@salsa.debian.org:r-pkg-team/r-cran-htmlwidgets.git (fetch)
> origin  g...@salsa.debian.org:r-pkg-team/r-cran-htmlwidgets.git (push)
> I have no idea what might happen for private clones / forks.

Indeed. I can't find a generic way that would work with 'cme fix' because
the remote name is not always 'origin'.

So I'll remove the code that sets up Vcs-Git and Vcs-Browser from the team

On the other hand, I can provide a cme script that would update Vcs-Git 
and Vcs-Browser from the remote URL (provided user specifies the right 
remote name).

For instance:
$ cme run set-vcs-git
cme: using Dpkg::Control model
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Changes applied to dpkg-control configuration:
- source Vcs-Browser: 
'https://anonscm.debian.org/cgit/pkg-perl/packages/cme.git' -> 
- source Vcs-Git: 'https://anonscm.debian.org/git/pkg-perl/packages/cme.git' -> 

Would this be useful ?

All the best

PS: I first named the script "salsify", but it can be used even if the Debian 
are not hosted on salsa.debian.org. Too bad, I liked this name :-)

 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

Reply via email to