#1392 Replace references to latest-pkg with latest-build
Merged 5 years ago by mikem. Opened 5 years ago by danrodri.
danrodri/koji replace-latest-pkg  into  master

file modified
+1 -1
@@ -85,7 +85,7 @@ 

      """process options from command line and config file"""

  

      common_commands = ['build', 'help', 'download-build',

-                        'latest-pkg', 'search', 'list-targets']

+                        'latest-build', 'search', 'list-targets']

      usage = _("%%prog [global-options] command [command-options-and-arguments]"

                  "\n\nCommon commands: %s" % ', '.join(sorted(common_commands)))

      parser = OptionParser(usage=usage)

file modified
+3 -4
@@ -277,11 +277,11 @@ 

  

  **Latest Builds**

  

- To see the latest builds for a tag, use the ``latest-pkg`` command:

+ To see the latest builds for a tag, use the ``latest-build`` command:

  

  ::

  

-     $ koji latest-pkg --all dist-fc7

+     $ koji latest-build --all dist-fc7

      Build                                     Tag                   Built by

      ----------------------------------------  --------------------  ----------------

      ConsoleKit-0.1.0-5.fc7                    dist-fc7              davidz
@@ -311,8 +311,7 @@ 

              build                Build a package from source

              cancel-task          Cancel a task

              help                 List available commands

-             latest-build         Print the latest rpms for a tag

-             latest-pkg           Print the latest builds for a tag

+             latest-build         Print the latest builds for a tag

      ...

      $ koji build --help

      usage: koji build [options] tag URL

file modified
+3 -4
@@ -191,11 +191,11 @@ 

  Latest Builds

  -------------

  

- To see the latest builds for a tag, use the latest-pkg command:

+ To see the latest builds for a tag, use the latest-build command:

  

  ::

  

-     $ koji latest-pkg --all dist-fc7

+     $ koji latest-build --all dist-fc7

  

      Build                                     Tag                   Built by

      ----------------------------------------  --------------------  ----------------
@@ -227,8 +227,7 @@ 

      build                Build a package from source

      cancel-task          Cancel a task

      help                 List available commands

-     latest-build         Print the latest rpms for a tag

-     latest-pkg           Print the latest builds for a tag

+     latest-build         Print the latest builds for a tag

      [...]

  

  ::

@@ -382,8 +382,7 @@ 

      build                Build a package from source

      cancel-task          Cancel a task

      help                 List available commands

-     latest-build         Print the latest rpms for a tag

-     latest-pkg           Print the latest builds for a tag

+     latest-build         Print the latest builds for a tag

      [...] 

  

  ::
@@ -602,11 +601,11 @@ 

  Latest Builds

  '''''''''''''

  

- To see the latest builds for a tag, use the latest-pkg command:

+ To see the latest builds for a tag, use the latest-build command:

  

  ::

  

-     $ koji latest-pkg --all dist-f14

+     $ koji latest-build --all dist-f14

  

  The output gives you not only the latest builds, but which tag they have

  been inherited from and who built them.

The latest-pkg command was renamed to latest-build in koji-1.8 and is still available for backwards compatibility. It is no longer listed in help output but is still suggested as a common command which is confusing to users.
This change replaces latest-pkg with latest-build in common commands and documentation. References to latest-pkg are removed where latest-build is also present. Also, description for latest-build command is updated to match the current one.

Commit f229543 fixes this pull-request

Pull-Request has been merged by mikem

5 years ago