Hi,

On Mon, 28 Feb 2011, Peter Eisentraut wrote:
> The 3.0 source formats by default ignore what dpkg-source -I would exclude.  
> It appears that as soon as you explicitly use -Isomething, this effect is 
> canceled and you need to use -I to get it back.

Yes.

> In my test case, a directory has .svn directories lying around and uses 
> source 
> format 3.0 (native).  Building a source package with dpkg-buildpackage -S 
> excludes the .svn directories from the .tar.gz, as one would expect.  But 
> running dpkg-buildpackage -S -Ifoo causes the .svn directories to appear in 
> ..tar.gz.  You have to use dpkg-buildpackage -S -I -Ifoo to get the desired 
> outcome.
> 
> This effect is a bit questionable in my mind, but even it is intentional, it 
> would be good to document it explicitly.  (simple addition of "Note: When 
> using an -I option, the default ignores of the 3.0 formats are canceled.  You 
> would need to use -I without argument to get them back.)

It was completely intentional. It might not have been the best choice.

I wanted to keep a way to cancel the defaults by giving your own list of
what you want to ignore. 

> Better yet might be to keep the default ignores always and add an explicit 
> unignore option.

I wanted to keep some similarity with the behaviour of -i but that might
not be a good idea. After all -I was always allowed to be used multiple
times while -i was not.

Not sure what the best interface is. unignore doesn't allow to drop all
the defaults ignore but only those that you know of. OTOH, you're more
likely to want to not ignore a specific file type rather than all.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to