#2950 kojira: Do not ever clean up repositories where 'latest' points to
Merged by tkopecek. Opened by ignatenkobrain.
ignatenkobrain/koji dist-clean  into  master

Download 2950.patch

We don't want to leave symlink broken… Ideally we would find out stuff
where we should even remove "latest" but it is not straightforward and I
believe this simple check is good enough for the time being.

Fixes: https://pagure.io/koji/issue/2832
Signed-off-by: Igor Raits igor.raits@gmail.com

Just flake8 is failin on too-long line. Otherwise :thumbsup:

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

Aha, let me fix it.

rebased onto 611c132b3659710401b234f26b6fd970339c308b

@tkopecek fixed.

:thumbsup:

Metadata Update from @tkopecek:
- Pull-request untagged with: testing-ready

Hmm, found some problems with this. If that tag is "build" or "ignored" tag it will work. Otherwise there is other part of code which will delete it in another thread. It makes sense to me to skip distrepos there. They should expire only based on time.

:monkey_face:

@tkopecek let me add there some if

@tkopecek is it better now?

rebased onto 4f59d31cacf3e92423fef8dd11cb272cd675eecc

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

@tkopecek what's missing here from me?

Nothing :-) It is waiting for QE recheck and then I'll merge it. Will be part of next release (1.26).

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

Commit 6ec2a177 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata