Sean Whitton writes ("Bug#977845: dgit: unhelpful behavior in case previous
upload contained new upstream release"):
> On Mon 21 Dec 2020 at 09:01PM +01, Paul Gevers wrote:
> > In the end I resorted to
> > paul@mulciber ~/packages/bugs $ dgit clone f2fs-tools testing
> > as unstable and testing have the same version, but that doesn't work if
> > unstable and testing don't have the same version.
>
> In this situation what it seems we want to achieve is
>
> a) get the version you want to hack on into dgit as if `dgit clone` had
> given it you
>
> b) make it easy to `dgit push` your new version, which is based on the
> result of (a).
The problem is that in this situation the person who uses dgit clone
does not get the orig tarball and has no systematic way to find it.
> However, detecting whether an upload made it to the archive would
> require incorporating a lot of idiosyncratic knowledge about dak into
> dgit, I think, with a fair bit of guessing? Or is the way that dak
> keeps track of such things amenable to adding a new ftp-master API query
> to find out?
dgit clone already knows this situation has arisen, because it can see
that the version in git is newer than the version in the archive.
> In the meantime what I would have done is `apt-get source` followed by
> `dgit import-dsc` followed by pseudomerging in the result of `dgit fetch
> unstable`. What do you think about the error message suggesting that
> for this sort of situation?
That wouldn't work either, because apt-get source doesn't have access
to the orig tarball.
The original uploader had the orig tarball. dgit push sent it to the
archive. But I think if the upload was REJECTed (or dcut or
something), the archive doesn't have it any more. I don't think
ftpmaster keep uploaded things that don't end up in the archive.
(Please correct me if I'm wrong.)
I think the solution has to involve dgit push messing about with
pristine-tar to send a pristine-tar branch to dgit-repos :-/.
Ian.
--
Ian Jackson <[email protected]> These opinions are my own.
Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.