[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Faster importing of packages (ddtp.debian.org)

On 28 July 2012 16:59, Stuart Prescott <stuart@debian.org> wrote:
> You are right that the pdiffs are ed-style diffs are a right pain in the
> rear end to work with. Unfortunately, you need the *old* Packages and the
> diff to work out what changed; the *new* Packages file and the diff are
> insufficient as the ed-style diff is not reversible like a normal patch is.

Well actually, no. You can use the new Packages file. You're not
trying to reverse the patch, you're just trying to find which parts of
the Packages file changed from the previous version. I just coded up a
little test program to prove this to myself, In fact, you should be
able to compose multiple patches to find (for example) any changes in
the last week, but that's a little trickier to code.

You can't detect deletes, but that's not an issue here.

>     lspdiff --packages Packages.old --pdiff 2012-07-10-2042.36.pdiff
> you get a list of package names that have changed in some way (added,
> deleted or changed).

I'd be interested in this one since I imagine it's a feature that
could be readily added to that script.

Have a nice day,
Martijn van Oosterhout <kleptog@gmail.com> http://svana.org/kleptog/

Reply to: