cmds.distro.CmdInfo: Rename to cmds.platform.CmdInfo
Rename command "distro" to "pkg" together with "info", its last remaining subcommand. "distro" is often used in the sense of "Linux distribution", which would be too narrow for the targets jw-pkg could theoretically support.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5830984bfc
commit
514d66dac1
10 changed files with 20 additions and 20 deletions
|
|
@ -41,7 +41,7 @@ subpackage_description()
|
|||
|
||||
os_cascade()
|
||||
{
|
||||
/usr/bin/python3 $JWB_SCRIPT_DIR/jw-pkg.py distro info --format '%{cascade}'
|
||||
/usr/bin/python3 $JWB_SCRIPT_DIR/jw-pkg.py platform info --format '%{cascade}'
|
||||
}
|
||||
|
||||
# -- here we go
|
||||
|
|
|
|||
|
|
@ -34,14 +34,14 @@ fatal()
|
|||
quit 1
|
||||
}
|
||||
|
||||
distro_info()
|
||||
platform_info()
|
||||
{
|
||||
/usr/bin/python3 $JWB_SCRIPT_DIR/jw-pkg.py distro info --format "$1"
|
||||
/usr/bin/python3 $JWB_SCRIPT_DIR/jw-pkg.py platform info --format "$1"
|
||||
}
|
||||
|
||||
get_os()
|
||||
{
|
||||
[ "$__get_os" ] || __get_os=`distro_info '%{id}-%{codename}'`
|
||||
[ "$__get_os" ] || __get_os=`platform_info '%{id}-%{codename}'`
|
||||
echo $__get_os
|
||||
}
|
||||
|
||||
|
|
@ -616,7 +616,7 @@ upload_pkg()
|
|||
;;
|
||||
debian|deb)
|
||||
local -r server=apt.janware.com
|
||||
local -r distro_subdir=$(distro_info '%{id}/%{codename}')
|
||||
local -r distro_subdir=$(platform_info '%{id}/%{codename}')
|
||||
local conf=`mktemp "/tmp/$myname"_XXXXXX`
|
||||
cat <<-EOT > $conf
|
||||
[DEFAULT]
|
||||
|
|
@ -1096,7 +1096,7 @@ cmd_milk_install_log()
|
|||
|
||||
echo "== processing stage $stage: cfg_section pkg.$p.$stage" >&2
|
||||
local os content=""
|
||||
for os in '' `distro_info '%{cascade}'`; do
|
||||
for os in '' `platform_info '%{cascade}'`; do
|
||||
local sec=pkg.$p.$stage head=""
|
||||
if [ "$os" ]; then
|
||||
sec="$sec.$os"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue