Make the diffs absolute and sort them.

This commit is contained in:
yackob03 2013-10-18 17:05:51 -04:00
parent 3d0b165de9
commit 63ffa52245
71 changed files with 433680 additions and 433679 deletions

View file

@ -357,6 +357,7 @@ def process_image_changes(namespace, repository, image_id):
sections = ('added', 'changed', 'removed')
for section, source_trie in zip(sections, new_metadata[1:]):
diffs[section] = list(source_trie)
diffs[section].sort()
store.put_content(image_diffs_path, json.dumps(diffs, indent=2))
return new_trie_path

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,16 +1,16 @@
{
"removed": [],
"added": [
"dev/kmsg",
"root/.bash_history",
"usr/sbin/policy-rc.d"
"/dev/kmsg",
"/root/.bash_history",
"/usr/sbin/policy-rc.d"
],
"changed": [
"tmp",
"dev",
".",
"usr",
"root",
"usr/sbin"
"/.",
"/dev",
"/root",
"/tmp",
"/usr",
"/usr/sbin"
]
}

Binary file not shown.

View file

@ -27,7 +27,7 @@ def files_and_dirs_from_tar(source_stream, removed_prefix_collector):
continue
else:
yield absolute
yield "/" + absolute
def __compute_removed(base_trie, removed_prefixes):