Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
ebfe1bdb
Commit
ebfe1bdb
authored
Sep 01, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use $@ instead of pkg_filenames where possible
parent
0a9e4a9f
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
22 deletions
+21
-22
epm-autoorphans
bin/epm-autoorphans
+1
-1
epm-clean
bin/epm-clean
+1
-1
epm-downgrade
bin/epm-downgrade
+1
-0
epm-download
bin/epm-download
+9
-9
epm-kernel_update
bin/epm-kernel_update
+2
-2
epm-optimize
bin/epm-optimize
+1
-1
epm-remove_old_kernels
bin/epm-remove_old_kernels
+2
-2
epm-repofix
bin/epm-repofix
+2
-2
epm-repolist
bin/epm-repolist
+2
-2
epm-upgrade
bin/epm-upgrade
+0
-2
No files found.
bin/epm-autoorphans
View file @
ebfe1bdb
...
@@ -25,7 +25,7 @@ __epm_orphan_altrpm()
...
@@ -25,7 +25,7 @@ __epm_orphan_altrpm()
epm_autoorphans
()
epm_autoorphans
()
{
{
[
-z
"
$
pkg_filenames
"
]
||
fatal
"No arguments are allowed here"
[
-z
"
$
*
"
]
||
fatal
"No arguments are allowed here"
case
$PMTYPE
in
case
$PMTYPE
in
...
...
bin/epm-clean
View file @
ebfe1bdb
...
@@ -37,7 +37,7 @@ __remove_deb_apt_cache_file()
...
@@ -37,7 +37,7 @@ __remove_deb_apt_cache_file()
epm_clean
()
epm_clean
()
{
{
[
-z
"
$
pkg_filenames
"
]
||
fatal
"No arguments are allowed here"
[
-z
"
$
*
"
]
||
fatal
"No arguments are allowed here"
case
$PMTYPE
in
case
$PMTYPE
in
...
...
bin/epm-downgrade
View file @
ebfe1bdb
...
@@ -79,6 +79,7 @@ epm_downgrade()
...
@@ -79,6 +79,7 @@ epm_downgrade()
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
local
APTOPTIONS
=
"
$(
subst_option non_interactive
-y
)
"
__epm_add_alt_apt_downgrade_preferences
||
return
__epm_add_alt_apt_downgrade_preferences
||
return
load_helper epm-upgrade
load_helper epm-upgrade
# pass pkg_filenames too
epm_upgrade
"
$@
"
epm_upgrade
"
$@
"
__epm_remove_apt_downgrade_preferences
__epm_remove_apt_downgrade_preferences
;;
;;
...
...
bin/epm-download
View file @
ebfe1bdb
...
@@ -190,40 +190,40 @@ epm_download()
...
@@ -190,40 +190,40 @@ epm_download()
case
$DISTRNAME
-
$PMTYPE
in
case
$DISTRNAME
-
$PMTYPE
in
ALTLinux-apt-rpm
)
ALTLinux-apt-rpm
)
__epm_download_alt
$
pkg_filenames
__epm_download_alt
$
*
return
return
;;
;;
esac
esac
case
$PMTYPE
in
case
$PMTYPE
in
dnf-rpm
)
dnf-rpm
)
sudocmd dnf download
$
pkg_filenames
sudocmd dnf download
$
*
;;
;;
aptcyg
)
aptcyg
)
sudocmd apt-cyg download
$
pkg_filenames
sudocmd apt-cyg download
$
*
;;
;;
packagekit
)
packagekit
)
docmd pkcon download
$
pkg_filenames
docmd pkcon download
$
*
;;
;;
yum-rpm
)
yum-rpm
)
# TODO: check yum install --downloadonly --downloaddir=/tmp <package-name>
# TODO: check yum install --downloadonly --downloaddir=/tmp <package-name>
assure_exists yumdownloader yum-utils
assure_exists yumdownloader yum-utils
sudocmd yumdownloader
$
pkg_filenames
sudocmd yumdownloader
$
*
;;
;;
dnf-rpm
)
dnf-rpm
)
sudocmd dnf download
$
pkg_filenames
sudocmd dnf download
$
*
;;
;;
urpm-rpm
)
urpm-rpm
)
sudocmd urpmi
--no-install
$URPMOPTIONS
$@
sudocmd urpmi
--no-install
$URPMOPTIONS
$@
;;
;;
tce
)
tce
)
sudocmd tce-load
-w
$
pkg_filenames
sudocmd tce-load
-w
$
*
;;
;;
opkg
)
opkg
)
docmd opkg
$
pkg_filenames
docmd opkg
$
*
;;
;;
homebrew
)
homebrew
)
docmd brew fetch
$
pkg_filenames
docmd brew fetch
$
*
;;
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
...
...
bin/epm-kernel_update
View file @
ebfe1bdb
...
@@ -35,8 +35,8 @@ epm_kernel_update()
...
@@ -35,8 +35,8 @@ epm_kernel_update()
fi
fi
assure_exists update-kernel update-kernel 0.9.9
assure_exists update-kernel update-kernel 0.9.9
update_repo_if_needed
update_repo_if_needed
sudocmd update-kernel
$(
subst_option non_interactive
-y
)
$pkg_filenames
||
return
sudocmd update-kernel
$(
subst_option non_interactive
-y
)
"
$@
"
||
return
docmd epm remove-old-kernels
$(
subst_option non_interactive
-y
)
$pkg_filenames
||
fatal
docmd epm remove-old-kernels
$(
subst_option non_interactive
-y
)
"
$@
"
||
fatal
return
;;
return
;;
esac
esac
...
...
bin/epm-optimize
View file @
ebfe1bdb
...
@@ -32,7 +32,7 @@ __repack_rpm_base()
...
@@ -32,7 +32,7 @@ __repack_rpm_base()
epm_optimize
()
epm_optimize
()
{
{
[
-z
"
$
pkg_filenames
"
]
||
fatal
"No arguments are allowed here"
[
-z
"
$
*
"
]
||
fatal
"No arguments are allowed here"
case
$PMTYPE
in
case
$PMTYPE
in
*
-rpm
)
*
-rpm
)
...
...
bin/epm-remove_old_kernels
View file @
ebfe1bdb
...
@@ -32,7 +32,7 @@ epm_remove_old_kernels()
...
@@ -32,7 +32,7 @@ epm_remove_old_kernels()
return
return
fi
fi
assure_exists update-kernel update-kernel 0.9.9
assure_exists update-kernel update-kernel 0.9.9
sudocmd remove-old-kernels
$(
subst_option non_interactive
-y
)
$pkg_filenames
sudocmd remove-old-kernels
$(
subst_option non_interactive
-y
)
"
$@
"
return
;;
return
;;
Ubuntu
)
Ubuntu
)
load_helper epm-query_package
load_helper epm-query_package
...
@@ -52,7 +52,7 @@ epm_remove_old_kernels()
...
@@ -52,7 +52,7 @@ epm_remove_old_kernels()
assure_exists purge-old-kernels byobu
assure_exists purge-old-kernels byobu
;;
;;
esac
esac
sudocmd purge-old-kernels
$pkg_filenames
sudocmd purge-old-kernels
"
$@
"
return
;;
return
;;
Gentoo
)
Gentoo
)
sudocmd emerge
-P
gentoo-sources
sudocmd emerge
-P
gentoo-sources
...
...
bin/epm-repofix
View file @
ebfe1bdb
...
@@ -155,6 +155,8 @@ __fix_repo_to_basealt()
...
@@ -155,6 +155,8 @@ __fix_repo_to_basealt()
epm_repofix
()
epm_repofix
()
{
{
[
-z
"
$1
"
]
||
fatal
"No arguments are allowed here"
case
$DISTRNAME
in
case
$DISTRNAME
in
ALTLinux
)
ALTLinux
)
assure_exists apt-repo
assure_exists apt-repo
...
@@ -180,8 +182,6 @@ case $DISTRNAME in
...
@@ -180,8 +182,6 @@ case $DISTRNAME in
;;
;;
esac
esac
[
-z
"
$1
"
]
||
fatal
"No arguments are allowed here"
case
$PMTYPE
in
case
$PMTYPE
in
# apt-rpm)
# apt-rpm)
# ;;
# ;;
...
...
bin/epm-repolist
View file @
ebfe1bdb
...
@@ -70,8 +70,8 @@ epm_repolist()
...
@@ -70,8 +70,8 @@ epm_repolist()
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
)
#assure_exists apt-repo
#assure_exists apt-repo
if
tasknumber
"
$
pkg_names
"
>
/dev/null
;
then
if
tasknumber
"
$
1
"
>
/dev/null
;
then
get_task_packages
$pkg_names
get_task_packages
"
$@
"
else
else
print_apt_sources_list
print_apt_sources_list
#docmd apt-repo list
#docmd apt-repo list
...
...
bin/epm-upgrade
View file @
ebfe1bdb
...
@@ -24,8 +24,6 @@ epm_upgrade()
...
@@ -24,8 +24,6 @@ epm_upgrade()
{
{
local
CMD
local
CMD
#[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
# it is useful for first time running
# it is useful for first time running
update_repo_if_needed
update_repo_if_needed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment