[DRE-maint] Bug#785106: gem2deb: implement dh-make-ruby --refresh

Antonio Terceiro terceiro at debian.org
Thu May 21 13:34:20 UTC 2015


On Mon, May 18, 2015 at 04:23:14AM +0200, Lucas Nussbaum wrote:
> On 16/05/15 at 23:27 -0300, Antonio Terceiro wrote:
> > On Tue, May 12, 2015 at 02:22:15PM +0200, Lucas Nussbaum wrote:
> > > Package: gem2deb
> > > Version: 0.15
> > > Severity: wishlist
> > > 
> > > 14:00 < lucas> terceiro: any objections to adding dh-make-ruby --refresh, that moves away debian/, creates fresh content, merge the 
> > >                changelog, and point to how to use meld to merge the rest manually?
> > > 14:02 < terceiro> lucas: I would copy (not move) debian/ away, and then overwrite it's contents. This way you keep files that were 
> > >                   added by the maintainer but that dh-make-ruby would not create otherwise
> > > 14:03 < terceiro> make the merging easier IMO
> > > 14:03 < terceiro> lucas: if debian/ exists, I think that coud even be the default behavior
> > > 14:03 < lucas> terceiro: I've tried both approaches. the problem with copying is that you don't know if there are obsolete files around
> > > 14:03 < terceiro> hm
> > > 14:03 < lucas> meld + Copy to left / copy to right works better imho
> > > 14:03 < lucas> in terms of workflow
> > > 14:04 < terceiro> for me overwrite then `git diff` would work
> > > 14:05 < lucas> I can see if it's easy to implement both
> > > 14:05 < lucas> it probably is
> > > 14:06 < terceiro> lucas: cool, I don't have a strong position though
> > > 14:06 < terceiro> lucas: does making --refresh the default behavior when debian/ already exists sound sane?
> > > 14:07 < lucas> I think so, yes
> > > 14:07 < terceiro> nice
> > 
> > I have just implement one half of this: a -w/--overwrite option that
> > will, well, overwrite the files under debian/ that dh-make-ruby would
> > have created if they didn't exist before.
> > 
> > It seems that the other half (--refresh itself) should be easy, but I
> > didn't get yet what's the idea. Should dh-make-ruby move debian/ away,
> > recreate a fresh debian and then let the user use meld/whatever against
> > them manually?
> 
> That's the idea, yes. But maybe it's best done outside of gem2deb,
> manually by the user? I'm not sure anymore. Maybe upload with -w only,
> and we will see later if there's still a need for an option that moves
> or copies debian/?

Yeah. I think you can pretty easily implement this workflow with a shell
alias like

alias re-dh-make-ruby='mv debian debian.off && dh-make-ruby && meld debian.off debian'

?

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150521/2aa61932/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list