forked from artix/artools
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bef2a0b3fa | |||
| 8d6f12f5a9 | |||
| bf6fc3fcff |
@@ -83,9 +83,11 @@ write_pkg_yaml(){
|
||||
Yaml=$(write_yaml_header)
|
||||
|
||||
Yaml+=$(write_empty_line)
|
||||
|
||||
local ver=$(get_full_version)
|
||||
|
||||
|
||||
local full=$(get_full_version)
|
||||
|
||||
local ver=${full:-0}
|
||||
|
||||
pkgbase=${pkgbase:-${pkgname[0]}}
|
||||
|
||||
Yaml+=$(write_yaml_map 0 "pkgbase")
|
||||
|
||||
@@ -122,13 +122,13 @@ get_artix_tree(){
|
||||
# $(get_cases freedesktop)) tree=packages-desktop ;;
|
||||
# $(get_cases kde)) tree=packages-kde ;;
|
||||
# $(get_cases gnome)) tree=packages-gnome ;;
|
||||
|
||||
|
||||
}
|
||||
|
||||
get_import_path(){
|
||||
local pkg="$1" import_path=
|
||||
for tree in ${TREE_NAMES_ARCH[@]};do
|
||||
[[ -d ${TREE_DIR_ARCH}/$tree/$pkg ]] && import_path=${TREE_DIR_ARCH}/$tree/$pkg
|
||||
[[ -d ${TREE_DIR_ARCH}/$tree/$pkg/repos ]] && import_path=${TREE_DIR_ARCH}/$tree/$pkg
|
||||
done
|
||||
echo $import_path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user