Commit 71459ee2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.64.25

parent 83474f72
...@@ -34,7 +34,7 @@ SHAREDIR="$PROGDIR" ...@@ -34,7 +34,7 @@ SHAREDIR="$PROGDIR"
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR="$PROGDIR/../etc" CONFIGDIR="$PROGDIR/../etc"
export EPMVERSION="3.64.24" export EPMVERSION="3.64.25"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
...@@ -2694,7 +2694,7 @@ __epm_apt_set_lists_pkg() ...@@ -2694,7 +2694,7 @@ __epm_apt_set_lists_pkg()
LISTS='/var/lib/apt/lists' LISTS='/var/lib/apt/lists'
if [ "$BASEDISTRNAME" = "alt" ] ; then if [ "$BASEDISTRNAME" = "alt" ] ; then
pkg="pkglist" pkg="pkglist."
# see update-kernel: Use Dir::State::lists for apt update freshness check (ALT bug 46987) # see update-kernel: Use Dir::State::lists for apt update freshness check (ALT bug 46987)
eval "$(a='' apt-config shell LISTS Dir::State::lists/f)" eval "$(a='' apt-config shell LISTS Dir::State::lists/f)"
fi fi
...@@ -10337,7 +10337,7 @@ __epm_removerepo_alt() ...@@ -10337,7 +10337,7 @@ __epm_removerepo_alt()
autoimports) autoimports)
info "removing autoimports repo" info "removing autoimports repo"
[ -n "$DISTRVERSION" ] || fatal "Empty DISTRVERSION" [ -n "$DISTRVERSION" ] || fatal "Empty DISTRVERSION"
repo="autoimports.$branch" repo="autoimports/$DISTRVERSION"
__epm_removerepo_alt_grepremove "$repo/" __epm_removerepo_alt_grepremove "$repo/"
;; ;;
archive) archive)
...@@ -10372,6 +10372,7 @@ __epm_removerepo_alt() ...@@ -10372,6 +10372,7 @@ __epm_removerepo_alt()
__epm_removerepo_apt "$*" __epm_removerepo_apt "$*"
else else
info "removing with grep by '$*'" info "removing with grep by '$*'"
# TODO: switch to $@ and use epm repo remove instead of __epm_removerepo_alt_grepremove
__epm_removerepo_alt_grepremove "$*" __epm_removerepo_alt_grepremove "$*"
fi fi
;; ;;
...@@ -11673,6 +11674,15 @@ __epm_repoindex_alt() ...@@ -11673,6 +11674,15 @@ __epm_repoindex_alt()
fi fi
REPO_NAME="$2" REPO_NAME="$2"
# copied from epm-addrepo
# URL to path/RPMS.addon
local base="$(basename "$REPO_DIR")"
if echo "$base" | grep -q "^RPMS\." ; then
REPO_NAME="$(echo $base | sed -e 's|.*\.||')"
REPO_DIR="$(dirname "$REPO_DIR")"
fi
if [ -z "$REPO_NAME" ] ; then if [ -z "$REPO_NAME" ] ; then
# default name # default name
REPO_NAME="addon" REPO_NAME="addon"
...@@ -14695,13 +14705,17 @@ epm_update() ...@@ -14695,13 +14705,17 @@ epm_update()
__epm_update_content_index __epm_update_content_index
return return
fi fi
if [ "$1" = "--check-apt-db-days" ] ; then
# update with args is the alias for upgrade __epm_check_apt_db_days && info "APT DB is up to date"
if [ -n "$*" ] ; then
epm upgrade "$@"
return return
fi fi
# update with args is the alias for upgrade
#if [ -n "$*" ] ; then
# epm upgrade "$@"
# return
#fi
__epm_update "$@" || return __epm_update "$@" || return
__epm_touch_pkg __epm_touch_pkg
...@@ -19407,9 +19421,9 @@ check_command() ...@@ -19407,9 +19421,9 @@ check_command()
;; ;;
# HELPCMD: PART: Repository control: # HELPCMD: PART: Repository control:
update|update-repo|ur) # HELPCMD: update remote package repository databases (with args, run upgrade) update|update-repo|ur) # HELPCMD: update remote package repository databases
epm_cmd=update epm_cmd=update
#direct_args=1 direct_args=1
;; ;;
addrepo|ar|--add-repo) # HELPCMD: add package repo (etersoft, autoimports, archive 2017/01/31); run with param to get list addrepo|ar|--add-repo) # HELPCMD: add package repo (etersoft, autoimports, archive 2017/01/31); run with param to get list
epm_cmd=addrepo epm_cmd=addrepo
......
...@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR ...@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.64.24" EPMVERSION="3.64.25"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment