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

Spec for package file diffs



The contents of

<http://ftp-stud.fht-esslingen.de/debian//dists/experimental/non-free/binary-alpha/Packages.diff/Index>

is a bit strange right now:

SHA1-Current: d2a77db170559d15bc4e3b5628ba88c4da68d7d5    5757
SHA1-History:
 d26806ef7c9cc69ca734a9ca3a3b1274ca1bf745    6474 2008-08-22-0839.37
 8a16863d0f04bbab37979e4cff0bbc52f5d04241    7427 2008-10-08-2041.09
 56c80f8e44ac9e743a8b6b36f2684e99ea854985    4947 2008-10-16-2055.24
 80e143ed7b7f2e64f454c475b1eca285eddc9c90    5765 2008-11-11-2049.12
 02043acabf9390de2ba3594bd76ad77bc45717f6   23547 2008-11-13-0846.16
 d899ef9a59068e19776effe322ca8cc3aed51766   15624 2008-12-22-0248.19
 6277c6bd31838f50ce77061c71f3eea00c18f9f5   15593 2008-12-24-0826.27
 c46c6d03d78fc7793d0375d442e51967694a0466    7296 2009-01-01-2015.52
 0aadd7465fbfe6455452541bd4522680f323a31b    7308 2009-01-03-1415.44
 f2b9bda81a2aafad895e3721103e31dfa444f4d5    7308 2009-01-04-1419.07
 4f93933f6867bd68b9214afb62621c3e85a35f7c   16411 2009-01-11-0246.49
 a5ca49b236e9f2426a56b671097d600da2843e4c   16411 2009-01-12-0236.18
 29745deb3e913405ec5934f7fa2d22c1235bb9f6    7308 2009-01-16-0246.58
 29745deb3e913405ec5934f7fa2d22c1235bb9f6    7308 2009-01-16-0246.58
SHA1-Patches:
 0f9bdf2841368622e075c42af018411c977af730       6 2008-08-22-0839.37
 496660402b1a0584ec34ac8c286f52e2e97d9a2a    5854 2008-10-08-2041.09
 bc11b85d19d8dc13cee1f26aa0ed4c6ea2e02a4b     824 2008-10-16-2055.24
 efd4fd958cf82d2a240569c6196b1d476a4625c8    1536 2008-11-11-2049.12
 8fec34193d6a63225f46c35c2330e99a222ba717    1300 2008-11-13-0846.16
 87c8b26bd106849c472e6483e289cb562da4484e    1365 2008-12-22-0248.19
 14a2eda6851dbd5d17dd2f07a35c5346ccd7b390     813 2008-12-24-0826.27
 72e87ba0df6a251b06768d4dae544b51ab7a86a9     775 2009-01-01-2015.52
 d663e6d382229e12e7e5043d9036393571741b84     600 2009-01-03-1415.44
 cc4c9bd28e6707f499ede07484966f48a4a1d440     551 2009-01-04-1419.07
 417449281fa1f06fe56c1263ce0aac3e5db1d513    1365 2009-01-11-0246.49
 10f1a8675e825b7b4dbc636a4d212e6065e85081     935 2009-01-12-0236.18
 25339486cdb18201e5454a1d268f3e9b4f69cc6b     951 2009-01-16-0246.58
 25339486cdb18201e5454a1d268f3e9b4f69cc6b     951 2009-01-16-0246.58

Note the duplicate patches.  Back when I implemented package diffs, I
was told that I didn't have to compute intermediate diffs, that is, I
can use the the SHA-1 history to discover the first patch to apply,
and continue applying patches in the second list, until I hit its end.

Obviously, this fails with the Index file shown above.  And in the
general case, I'd have to compute all intermediate SHA-1 hashes (and
the intermediate package file versions), which is rather expensive
(and we'll never fix the index diff performance problem if we have to
do that).

So I wonder if this is a bug on the server side, and if it can be
fixed.  I'd really hate to implement my own workaround for this.


Reply to: