#9 koji-remove-arch: remove arch even if only one
Merged 5 years ago by mikem. Opened 6 years ago by mikem.
mikem/koji-tools remove_arch_2  into  master

file modified
+3 -2
@@ -28,12 +28,13 @@ 

  

      session_opts = koji.grab_session_options(koji.config)

      session = koji.ClientSession(koji.config.server, session_opts)

-     activate_session(session, koji.config)

+     if not opts.test:

+         activate_session(session, koji.config)

  

      to_update = []

      for tag in session.listTags():

          new_arches = check_tag(tag, args)

-         if new_arches:

+         if new_arches is not None:

              to_update.append([tag, new_arches])

  

      print('Found %i tags to update' % len(to_update))

also as a precaution, don't use credentials for test mode

fixes a minor problem with #7

Commit b58f9f2 fixes this pull-request

Pull-Request has been merged by mikem

5 years ago
Metadata