Thanks for filing this.

On Sun, Oct 22, 2017 at 9:21 AM, Guido Günther <a...@sigxcpu.org> wrote:
> Package: pk4
> Version: 2
> Severity: wishlist
>
> Hi,
> it would be nice if pk4 would allow to use "gbp import-dsc" to unpack
> the donwloaded sources in downloadDSCAndUnpack so users:
>
>    - get a git archive right away
>    - can reuise their gbp configuration such as the configured builder,
>    - pristine-tar, ... right away

I think we could introduce a hook which would replace the default
behavior of dpkg-source -x, taking as arguments the path to the DSC
and the destination directory.

I wonder whether the gbp hook should live in the git-buildpackage
Debian package, though? That way, you could maintain it directly. If
you think that’s not a good idea, could you suggest how the hook
should be implemented? I’m envisioning something like this (untested):

#!/bin/sh
set -e
mkdir -p "$2"
cd "$2"
git init
gbp import-dsc "$1"

Side note: I think we should be fairly clear about the difference
between a gbp-from-dsc repo and a gbp-from-gbp-clone repo, to not
confuse our users.

>
> Cheers,
>  -- Guido
>
> -- System Information:
> Debian Release: buster/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
> 'testing-debug'), (500, 'stable-updates'), (500, 'oldoldstable'), (500, 
> 'unstable'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
> LANGUAGE=en_US:en (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)



-- 
Best regards,
Michael

Reply via email to