<div dir="ltr">Use "flatpak build-update-repo --prune" (or "ostree prune") on the repo. Look at the --prune-depth option. Beware that there potential issues if you do this while the repo is being updated since there's currently no locking for prune. However, if you can run this while there are no updates to the repo happening, you'll be safe. If you can't ensure that the repo won't be updated, a sufficiently deep depth will make the potential for removing a needed object pretty small.<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br>Dan Nicholson  |  +1.206.437.0833  |  Endless</div></div>
<br><div class="gmail_quote">On Fri, Jan 6, 2017 at 3:12 AM, Jan Horak <span dir="ltr"><<a href="mailto:jhorak@redhat.com" target="_blank">jhorak@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm doing nightly builds of big upstream project and my space on hosting where's my repository is limited.<br>
<br>
I've been considering to delete previous repository on hosting before I upload the fresh one. There's a drawback - if someone is installing or updating the app during my upload their installation is most likely to fail.<br>
<br>
I've also considered more complicated approach, keeping files from last two repos on hosting and deleting rest of the files.<br>
<br>
Is there a simpler approach instead of doing the second approach by my own bash script?<span class="HOEnZb"><font color="#888888"><br>
-- <br>
jh<br>
______________________________<wbr>_________________<br>
xdg-app mailing list<br>
<a href="mailto:xdg-app@lists.freedesktop.org" target="_blank">xdg-app@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xdg-app" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/xdg-app</a><br>
</font></span></blockquote></div><br></div></div>