On Wed, Jul 08, 2015 at 02:20:54PM +0530, Ritesh Raj Sarraf wrote:
> Package: git-buildpackage
> Version: 0.6.31
> Severity: normal
>
> Can you please add some example documentation for the --filter option ?
>
> >From what has been documented, it does not seem to behave accordingly.
>
> I'm trying to import-orig and upstream tarball that contains a "debian/"
> folder, which I am trying to filter out.
>
> No matter what option I try out, it just does not seem to be working.
>
>
> rrs@learner:/tmp/sg3-utils (upstream)$ gbp import-orig --filter debian/
> ../sg3-utils_1.41.orig.tar.xz
> What is the upstream version? [1.41]
> gbp:info: Importing '../sg3-utils_1.41.orig.tar.xz' to branch 'upstream'
> (filtering out ['debian/'])...
> gbp:info: Source package is sg3-utils
> gbp:info: Upstream version is 1.41
> gbp:info: Merging to 'master'
>
>
>
> rrs@learner:/tmp/sg3-utils (master)$ gbp import-orig --filter="debian/*"
> ../sg3-utils_1.41.orig.tar.xz
> What is the upstream version? [1.41]
> gbp:info: Importing '../sg3-utils_1.41.orig.tar.xz' to branch 'upstream'
> (filtering out ['debian/*'])...
> gbp:info: Source package is sg3-utils
> gbp:info: Upstream version is 1.41
> gbp:info: Merging to 'master'
>
>
>
> In both cases, the result is the same. It goes and touches files in
> debian/, overwriting them with the ones that upstream has shipped.
It works as expected here:
gbp import-orig --filter=src
/var/scratch/debian/libvirt/libvirt_1.2.16.orig.tar.gz
$ ls src
ls: cannot access src: No such file or directory
So you need to provide more steps to reproduce this.
Cheers,
-- Guido
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]