mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Remove sync of updateinfo
The update info is already automatically fetched from GitHub instead of using the distribution.json from the datastore
This commit is contained in:
@@ -231,17 +231,8 @@ class DbDataSync(BaseSync):
|
||||
write_json_to_file(file_path, j, timestamp)
|
||||
|
||||
|
||||
class UpdateInfoSync(BaseSync):
|
||||
def __init__(self, host, version, target_path):
|
||||
BaseSync.__init__(self, host, version, target_path)
|
||||
|
||||
def sync(self):
|
||||
self.sync_file('updateinfo', 'distribution.json')
|
||||
|
||||
|
||||
def update_shared(host, version, target_path):
|
||||
DbDataSync(host, version, target_path).sync()
|
||||
UpdateInfoSync(host, version, target_path).sync()
|
||||
|
||||
|
||||
def main():
|
||||
@@ -250,7 +241,6 @@ def main():
|
||||
target_path = os.path.abspath(os.curdir)
|
||||
|
||||
DbDataSync(host, version, target_path).sync()
|
||||
UpdateInfoSync(host, version, target_path).sync()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user