Re: ANNOUNCE: new cme script to update package VCS-Git field

2018-03-22 Thread gregor herrmann
On Thu, 22 Mar 2018 15:17:52 +0100, Andreas Tille wrote:

> In the discussion about the new lintian warning[2] I said: "I will not
> change Vcs fields until cme is doing this for me."  To be more precise I
> would now rather say:
> 
>... before  `cme fix dpkg-control`  is doing it for me.
> 
> […] Do you
> see any chance to add the set-vcs-git feature to
> 
>  cme fix dpkg-control
> 
> ? 

Seems our mails crossed; for those reading along at home: We're
working on this in #889732.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Element of Crime: Die letzte U-Bahn geht später


signature.asc
Description: Digital Signature


Re: ANNOUNCE: new cme script to update package VCS-Git field

2018-03-22 Thread Andreas Tille
Hi Dominique,

I've got an explicit pointer to this mail[1] (I admit I was a bit distracted
at that time (flu) ).

On Sat, Mar 10, 2018 at 06:36:42PM +0100, Dominique Dumont wrote:
> Since a lot of people are going to migrate their package repo from alioth to 
> salsa, I've created a small script for cme to help update debian/control file 
> for this new package repository.
> 
> Once you have updated your repo to the new remote (can be on salsa or 
> anywhere 
> else), run
> 
>  cme run set-vcs-git
> 
> This command will update Vcs-Browser and Vcs-Git in debian/control (from the 
> url of the "origin" remote) and commit the change.

I confirm this works nicely, specifically I like the "commit" feature.  (My
workflow is "cme fix ...; git diff ; git commit" - at first sight I assumed
nothing had happened since `git diff` was empty ;-) )
 
> This new script is available from libconfig-model-dpkg-perl 2.106 (and 
> requires cme package)

Thanks a lot.

In the discussion about the new lintian warning[2] I said: "I will not
change Vcs fields until cme is doing this for me."  To be more precise I
would now rather say:

   ... before  `cme fix dpkg-control`  is doing it for me.

While I disagree with the opinion of Alioth admins that there should be
no chance to save anonscm.d.o ("Because it wouldn't work." is no
sensible reason for me) it seems I need to face reality that things will
not happen if I do not setup a redirector for anonscm.d.o myself.  Do you
see any chance to add the set-vcs-git feature to

 cme fix dpkg-control

?  If lintian claims d/control is wrong cme could do this in the "fix"
step.  Does this make sense to you?

BTW, can you explain the philosophy behind `cme run` and `cme fix`.  Or
in other words, why is this

$ cme fix set-vcs-git
Can't locate model for application 'set-vcs-git'.
Run 'cme list' for the list of models available on your system.
You may need to install another Config::Model Perl module.
See the available models there: 
https://github.com/dod38fr/config-model/wiki/Available-models-and-backends
$ cme run dpkg-control
Error: cannot find script dpkg-control


not working?

As always thanks a lot for providing very useful features for cme

 Andreas.


[1] https://lists.debian.org/debian-devel/2018/03/msg00384.html
[2] https://lists.debian.org/debian-devel/2018/03/msg00382.html

-- 
http://fam-tille.de



ANNOUNCE: new cme script to update package VCS-Git field

2018-03-10 Thread Dominique Dumont
Hello

Since a lot of people are going to migrate their package repo from alioth to 
salsa, I've created a small script for cme to help update debian/control file 
for this new package repository.

Once you have updated your repo to the new remote (can be on salsa or anywhere 
else), run

 cme run set-vcs-git

This command will update Vcs-Browser and Vcs-Git in debian/control (from the 
url of the "origin" remote) and commit the change.

The remote name can also be specified. For instance:

 cme run set-vcs-git -arg remote=debian

For help, please run:

 cme run set-vcs-git --doc

or

  cme run --help

This new script is available from libconfig-model-dpkg-perl 2.106 (and 
requires cme package)

All the best