Compare commits

...

3 Commits

Author SHA1 Message Date
bef2a0b3fa comparepkg: only check for repos, but set pkg path 2019-04-21 01:10:01 +02:00
8d6f12f5a9 comparepkg: check for repos dir in arch git tree 2019-04-20 22:40:45 +02:00
bf6fc3fcff pkg2yaml: init fullver if empty 2019-04-04 23:12:33 +02:00
2 changed files with 7 additions and 5 deletions

View File

@@ -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")

View File

@@ -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
}