Allow creating and pulling static deltas starting from "empty"
You create these with something like: ostree static-delta generate --empty --to=master These will be automatically used during pull if no previous revision exists in the target repo. These work very much like the normal static deltas except they are named just by the "to" revision. I.e: deltas/94/f7d2dc23759dd21f9bd01e6705a8fdf98f90cad3e0109ba3f6c091c1a3774d for a from-scratch to 94f7d2dc23759dd21f9bd01e6705a8fdf98f90cad3e0109ba3f6c091c1a3774d delta. https://bugzilla.gnome.org/show_bug.cgi?id=721799
This commit is contained in:
1 parent
82ed6c43ed
commit
5b721a5b08
7 files changed
+78
-30
No files matched your search
@@ -1348,11 +1348,22 @@ get_delta_path (const char *from,
|
||||
const char *target)
|
||||
{
|
||||
char prefix[3];
|
||||
prefix[0] = from[0];
|
||||
prefix[1] = from[1];
|
||||
prefix[2] = '\0';
|
||||
from += 2;
|
||||
return g_strconcat ("deltas/", prefix, "/", from, "-", to, "/", target, NULL);
|
||||
if (from == NULL)
|
||||
{
|
||||
prefix[0] = to[0];
|
||||
prefix[1] = to[1];
|
||||
prefix[2] = '\0';
|
||||
to += 2;
|
||||
return g_strconcat ("deltas/", prefix, "/", to, "/", target, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
prefix[0] = from[0];
|
||||
prefix[1] = from[1];
|
||||
prefix[2] = '\0';
|
||||
from += 2;
|
||||
return g_strconcat ("deltas/", prefix, "/", from, "-", to, "/", target, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
|
||||
Reference in new issue
Block a user