mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
ostbuild: git-mirror: Also fetch patches git
This commit is contained in:
parent
1a5ea54aff
commit
0d1ba45c73
@ -52,6 +52,8 @@ class OstbuildGitMirror(builtins.Builtin):
|
||||
components = []
|
||||
for component in self.snapshot['components']:
|
||||
components.append(component['name'])
|
||||
if 'patches' in self.snapshot:
|
||||
components.append(self.snapshot['patches']['name'])
|
||||
if args.start_at:
|
||||
idx = components.index(args.start_at)
|
||||
components = components[idx:]
|
||||
|
@ -135,6 +135,10 @@ class Builtin(object):
|
||||
else:
|
||||
target_snapshot = in_snapshot
|
||||
component = self.find_component_in_snapshot(name, target_snapshot)
|
||||
if (component is None and
|
||||
'patches' in self.snapshot and
|
||||
self.snapshot['patches']['name'] == name):
|
||||
return self.snapshot['patches']
|
||||
if component is None:
|
||||
fatal("Couldn't find component '%s' in manifest" % (name, ))
|
||||
return component
|
||||
|
Loading…
x
Reference in New Issue
Block a user