Am Fri, 5 Jun 2020 19:55:50 +0200
schrieb Jan Kiszka <
jan.k...@siemens.com>:
> On 05.06.20 19:46, Henning Schild wrote:
> > Jan,
> >
> > this is what i talked about earlier. Not sure about the details
> > anymore but never got a reply.
> >
>
> Yes, I think I forgot to write a reply here:
>
> I think we are still (luckily) talking about two things here. One, the
> templating of the changelog with some "original" or whatever version
> is done and remains useful. The other, processing of arbitrarily
> versioned debian source packages is still a separate todo.
I think it is very closely related. The version to use is always in
what you fetch, no matter if you track "apt://" or "git://". So you
only know it after unpack.
> What is missing to build a tracking deb package rebuilder is
> extraction of the debian source package to a stable path so that S
> can refer to that without knowing the version in advance (which would
> be impossible). We basically need to detect what do_apt_fetch
> unpacked and rename that to comply with S. Can we tell "apt-get
> source" which directory to create (rather than
> <package-name>-<upstream-version>? Didn't find anything.
Yes if you only use apt://PN you will have to discover what you got. In
fact i am afraid you might never get tracking without a
"do_cleanall_apt" inbetween consecutive runs. Because you will not
download again if you have something that looks like it matches.
Note that do_apt_fetch creates a directory for every URI to run in. So
you can use apt://PN and apt://PN=PV and will get subdirs "PN" and
"PN=PV" in. The first one is basically tracking. But in reality the
others can be partial tracking if you skip revisions, apt-get source
does only partially match PV.
Because of that you technically always have to extract the most recent
changelog entry from something that did contain a changelog ...
We will probably mix up hello-2.1_debian2 with hello-2.1_debian5~6 and
just call both hello-2.1-isar99 if we apt://hello=2.1
Henning