#2560 cli: allow removal of unused external repo even with --alltags
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue2061  into  master

file modified
+5 -2
@@ -5592,8 +5592,11 @@ 

          if tags:

              parser.error(_("Do not specify tags when using --alltags"))

          if not current_tags:

-             print(_("External repo %s not associated with any tags") % repo)

-             return 0

+             if options.force:

+                 delete = True

+             else:

+                 warn(_("External repo %s not associated with any tags") % repo)

+                 return 0

          tags = current_tags

      if delete:

          # removing entirely

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

2 years ago

rebased onto 2900953

2 years ago

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

2 years ago

Commit 41f0931 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago