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
cfa06320
Commit
cfa06320
authored
Apr 22, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yum: sync code
parent
ad595c36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
yum
bin/yum
+20
-10
No files found.
bin/yum
View file @
cfa06320
#!/bin/sh
#
# Copyright (C) 2012-202
1
Etersoft
# Copyright (C) 2012-202
1
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-202
3
Etersoft
# Copyright (C) 2012-202
3
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -19,18 +19,31 @@
PROGDIR
=
$(
dirname
"
$0
"
)
PROGNAME
=
$(
basename
"
$0
"
)
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
$(
pwd
)
[
-n
"
$EPMCURDIR
"
]
||
export
EPMCURDIR
=
"
$(
pwd
)
"
CMDSHELL
=
"/bin/sh"
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
"
$EPMCURDIR
"
if
[
"
$0
"
=
"/dev/stdin"
]
||
[
"
$0
"
=
"sh"
]
;
then
PROGDIR
=
""
PROGNAME
=
""
fi
# will replaced with /usr/share/eepm during install
SHAREDIR
=
$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"@VERSION@"
# package, single (file), pipe, git
EPMMODE
=
"package"
[
"
$SHAREDIR
"
=
"
$PROGDIR
"
]
&&
EPMMODE
=
"single"
[
"
$EPMVERSION
"
=
"@""VERSION""@"
]
&&
EPMMODE
=
"git"
[
"
$PROGNAME
"
=
""
]
&&
EPMMODE
=
"pipe"
if
[
"
$EPMMODE
"
=
"git"
]
;
then
EPMVERSION
=
$(
head
$PROGDIR
/../eepm.spec |
grep
"^Version: "
|
sed
-e
's|Version: ||'
)
fi
load_helper
()
{
local
CMD
=
"
$SHAREDIR
/
$1
"
...
...
@@ -47,8 +60,6 @@ load_helper epm-sh-functions
set_pm_type
#set_sudo
check_tty
#############################
...
...
@@ -70,14 +81,13 @@ $(get_help HELPOPT | sed -e 's@|@,@g')
print_version
()
{
echo
"EPM package manager version
@VERSION@
https://wiki.etersoft.ru/Epm"
echo
"EPM package manager version
$EPMVERSION
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-202
1
"
echo
"Copyright (c) Etersoft 2012-202
3
"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
}
EPMVERSION
=
@VERSION@
verbose
=
quiet
=
nodeps
=
...
...
@@ -285,7 +295,7 @@ check_filenames()
elif
[
-d
"
$opt
"
]
;
then
has_space
"
$opt
"
&&
warning
"There are space(s) in directory path '
$opt
', it is not supported. Skipped"
&&
continue
pkg_dirs
=
"
$pkg_dirs
$opt
"
elif
echo
"
$opt
"
|
grep
-q
"^[fhtps]*://
"
;
then
elif
is_url
"
$opt
"
;
then
has_space
"
$opt
"
&&
warning
"There are space(s) in URL '
$opt
', it is not supported. Skipped"
&&
continue
pkg_urls
=
"
$pkg_urls
$opt
"
else
...
...
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