[pmg-devel] [PATCH pmg-docs] Replace apt-get to apt

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jul 6 13:52:55 CEST 2020


Thanks for the patch and cleaning up our documentation!

the apidata.js is automatically generated (by running `make update`) from
the descriptions of the API calls in the perl source code - i.e. for the
change to persist this needs to be done in pmg-api/src/PMG/API2

would be great if you sent a patch for that instead.

to test it - change the code, install the patched pmg-api package and run
make update in pmg-docs (then apidata.js should contain your changes)


On Mon,  6 Jul 2020 13:39:57 +0200
Moayad Almalat <m.almalat at proxmox.com> wrote:

> Signed-off-by: Moayad Almalat <m.almalat at proxmox.com>
> ---
>  api-viewer/apidata.js | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/api-viewer/apidata.js b/api-viewer/apidata.js
> index 0c89bda..8e308b3 100644
> --- a/api-viewer/apidata.js
> +++ b/api-viewer/apidata.js
> @@ -11769,7 +11769,7 @@ var pmgapi = [
>                             },
>                             "POST" : {
>                                "allowtoken" : 1,
> -                              "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
> +                              "description" : "This is used to resynchronize the package index files from their sources (apt update).",
>                                "method" : "POST",
>                                "name" : "update_database",
>                                "parameters" : {
> @@ -12702,7 +12702,7 @@ var pmgapi = [
>                                },
>                                "upgrade" : {
>                                   "default" : 0,
> -                                 "description" : "Run 'apt-get dist-upgrade' instead of normal shell.",
> +                                 "description" : "Run 'apt dist-upgrade' instead of normal shell.",
>                                   "optional" : 1,
>                                   "type" : "boolean",
>                                   "typetext" : "<boolean>"




More information about the pmg-devel mailing list