Antoine Beaupré <anar...@koumbit.org> writes:

> Now either the documentation is incorrect, or the implementation is
> incorrect because just using:

> DIST=sid git-pbuilder login

> actually looks for /var/cache/pbuilder/base.cow:

> anarcat@marcos:charybdis$ DIST=sid git-pbuilder login
> Base directory /var/cache/pbuilder/base.cow does not exist

It looks for /var/cache/pbuilder/base-sid.cow first, and then looks for
/var/cache/pbuilder/base.cow.  The error message only lists the last thing
that it looks for, but it does look for both.  I'm not entirely sure how
to make the error message less confusing, but I'm pretty sure it is
behaving as documented.

Perhaps what's confusing is that it special-cases a DIST of sid and falls
back to base.cow if base-sid.cow doesn't exist.

> I believe, however, that it would be more coherent to look for
> base-$DIST-$ARCH.cow by default, and have $ARCH default to something
> like "amd64" (or rather dpkg --print-architecture).

We could do that.  Similar to checking for DIST first, it could check for
DIST-ARCH first, then DIST, then just base.cow.

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>



--
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