Skip to content

Commit

Permalink
fedora-ostree-pruner: drop prune_prod_repo_deltas function
Browse files Browse the repository at this point in the history
When we prune commits the static deltas will get dropped too so this
function is not needed.
  • Loading branch information
dustymabe committed Nov 11, 2021
1 parent 661f8fe commit ecf80f9
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions fedora-ostree-pruner/fedora-ostree-pruner
Original file line number Diff line number Diff line change
Expand Up @@ -205,26 +205,7 @@ def prune_prod_repo(test=False):
cmd = ['ostree', 'prune', '--repo', OSTREEPRODREPO, '--refs-only']
if test:
cmd.append('--no-prune')
runcmd(cmd, capture_output=False)


# XXX this function should not be used yet as there are a few
# bugs to work out:
# https://github.com/ostreedev/ostree/issues/1479
# https://github.com/ostreedev/ostree/issues/1481
def prune_prod_repo_deltas(test=False):

logger.info("prune_prod_repo_deltas: this function is disabled until the"
"following bugs are fixed:")
logger.info("https://github.com/ostreedev/ostree/issues/1479")
logger.info("https://github.com/ostreedev/ostree/issues/1481")
return

cmd = ['ostree', 'prune', '--repo', OSTREEPRODREPO,
'--refs-only', '--static-deltas-only']
if test:
cmd.append('--no-prune')
runcmd(cmd, capture_output=False)
runcmd(cmd)


def main():
Expand Down Expand Up @@ -270,11 +251,5 @@ def main():
time.sleep(60*60*24) # 24h


# XXX this function should not be used yet as there are a few
# bugs to work out:
# https://github.com/ostreedev/ostree/issues/1479
# https://github.com/ostreedev/ostree/issues/1481
#prune_prod_repo_deltas(args.test)

if __name__ == '__main__':
main()

0 comments on commit ecf80f9

Please sign in to comment.