mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-08 05:50:47 +00:00
Keep checksum of not compressed index file even if it's not uploaded
Fixes: #756
This commit is contained in:
@@ -61,6 +61,10 @@ class PublishSwitch1Test(BaseTest):
|
||||
pathsSeen = set()
|
||||
for l in release:
|
||||
fileHash, fileSize, path = l.split()
|
||||
if "Contents" in path and not path.endswith(".gz"):
|
||||
# "Contents" are present in index, but not really written to disk
|
||||
continue
|
||||
|
||||
pathsSeen.add(path)
|
||||
|
||||
fileSize = int(fileSize)
|
||||
@@ -321,6 +325,10 @@ class PublishSwitch8Test(BaseTest):
|
||||
pathsSeen = set()
|
||||
for l in release:
|
||||
fileHash, fileSize, path = l.split()
|
||||
if "Contents" in path and not path.endswith(".gz"):
|
||||
# "Contents" are present in index, but not really written to disk
|
||||
continue
|
||||
|
||||
pathsSeen.add(path)
|
||||
|
||||
fileSize = int(fileSize)
|
||||
@@ -506,6 +514,10 @@ class PublishSwitch14Test(BaseTest):
|
||||
pathsSeen = set()
|
||||
for l in release:
|
||||
fileHash, fileSize, path = l.split()
|
||||
if "Contents" in path and not path.endswith(".gz"):
|
||||
# "Contents" are present in index, but not really written to disk
|
||||
continue
|
||||
|
||||
pathsSeen.add(path)
|
||||
|
||||
fileSize = int(fileSize)
|
||||
|
||||
Reference in New Issue
Block a user