Hi,

Quoting Ian Jackson (2015-09-26 13:13:32)
> Your git tree might not already be clean.  If it isn't, the generated source
> package would be wrong.  So the logic is as follows:
> 
>  - Your git tree might not be clean.
>    You can tell dgit that you promise it is, by saying --clean=none,
>    or simply have dgit check whether it is, with --clean=check.
> 
>  - By default, dgit does not run git-clean, because that would
>    delete anything you had forgotten to git-add.  You can
>    tell dgit you want to run git-clean, with --clean=git[-ff].
> 
>  - Otherwise, dgit needs to run rules clean.
> 
>  - According to the spec, rules clean needs the build-deps.
>    You can promise dgit that you your package's clean target does
>    not need the build-deps, with --clean=dpkg-source-d.
> 
> Personally I like -wgf aka --clean=git-ff.

maybe I don't understand yet what it means for my git tree to be clean but I
would've thought that if it is clean (no extra files, no uncommitted changes,
no deleted files) then there is no need to run "debian/rules clean". Is that
correct?

> Depending on your --clean mode, dgit sbuild might itself use dpkg-source -b.

According to the man page, it seems that --clean=git also uses
dpkg-buildpackage. Why? Once `git clean -xdf` is run, there should be no need
to call dpkg-buildpackage but "dpkg-source -b" should suffice, no? That would
also then not require any special casing of passing -nc to dpkg-buildpackage.

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to