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
6943c6cf
Commit
6943c6cf
authored
Apr 12, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: improve hack for install by provides
parent
d4120578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
epm
bin/epm
+4
-3
No files found.
bin/epm
View file @
6943c6cf
...
@@ -597,7 +597,7 @@ check_filenames()
...
@@ -597,7 +597,7 @@ check_filenames()
local
opt
local
opt
for
opt
in
"
$@
"
;
do
for
opt
in
"
$@
"
;
do
# files can be with full path or have extension via .
# files can be with full path or have extension via .
if
[
-f
"
$opt
"
]
&&
echo
"
$opt
"
|
grep
-q
"[/
\.
]"
;
then
if
[
-f
"
$opt
"
]
&&
rhas
"
$opt
"
"[/
\.
]"
;
then
has_space
"
$opt
"
&&
warning
"There are space(s) in filename '
$opt
', it is not supported. Skipped"
&&
continue
has_space
"
$opt
"
&&
warning
"There are space(s) in filename '
$opt
', it is not supported. Skipped"
&&
continue
[
-n
"
$pkg_files
"
]
&&
pkg_files
=
"
$pkg_files
$opt
"
||
pkg_files
=
"
$opt
"
[
-n
"
$pkg_files
"
]
&&
pkg_files
=
"
$pkg_files
$opt
"
||
pkg_files
=
"
$opt
"
elif
[
-d
"
$opt
"
]
;
then
elif
[
-d
"
$opt
"
]
;
then
...
@@ -606,12 +606,13 @@ check_filenames()
...
@@ -606,12 +606,13 @@ check_filenames()
elif
is_url
"
$opt
"
;
then
elif
is_url
"
$opt
"
;
then
has_space
"
$opt
"
&&
warning
"There are space(s) in URL '
$opt
', it is not supported. Skipped"
&&
continue
has_space
"
$opt
"
&&
warning
"There are space(s) in URL '
$opt
', it is not supported. Skipped"
&&
continue
[
-n
"
$pkg_urls
"
]
&&
pkg_urls
=
"
$pkg_urls
$opt
"
||
pkg_urls
=
"
$opt
"
[
-n
"
$pkg_urls
"
]
&&
pkg_urls
=
"
$pkg_urls
$opt
"
||
pkg_urls
=
"
$opt
"
elif
echo
"
$opt
"
|
grep
-q
"[/]"
;
then
# hack, TODO: reasons
elif
rhas
"
$opt
"
"[/]"
&&
!
rhas
"
$opt
"
"[()]"
;
then
has_space
"
$opt
"
&&
warning
"There are space(s) in filename '
$opt
', it is not supported. Skipped"
&&
continue
has_space
"
$opt
"
&&
warning
"There are space(s) in filename '
$opt
', it is not supported. Skipped"
&&
continue
[
-n
"
$pkg_files
"
]
&&
pkg_files
=
"
$pkg_files
$opt
"
||
pkg_files
=
"
$opt
"
[
-n
"
$pkg_files
"
]
&&
pkg_files
=
"
$pkg_files
$opt
"
||
pkg_files
=
"
$opt
"
else
else
has_space
"
$opt
"
&&
warning
"There are space(s) in package name '
$opt
', it is not supported. Skipped."
&&
continue
has_space
"
$opt
"
&&
warning
"There are space(s) in package name '
$opt
', it is not supported. Skipped."
&&
continue
echo
"
$opt
"
|
grep
-q
"[*]"
&&
warning
"There are forbidden symbols in package name '
$opt
'. Skipped."
&&
continue
rhas
"
$opt
"
"[*]"
&&
warning
"There are forbidden symbols in package name '
$opt
'. Skipped."
&&
continue
[
-n
"
$pkg_names
"
]
&&
pkg_names
=
"
$pkg_names
$opt
"
||
pkg_names
=
"
$opt
"
[
-n
"
$pkg_names
"
]
&&
pkg_names
=
"
$pkg_names
$opt
"
||
pkg_names
=
"
$opt
"
fi
fi
[
-n
"
$quoted_args
"
]
&&
quoted_args
=
"
$quoted_args
\"
$opt
\"
"
||
quoted_args
=
"
\"
$opt
\"
"
[
-n
"
$quoted_args
"
]
&&
quoted_args
=
"
$quoted_args
\"
$opt
\"
"
||
quoted_args
=
"
\"
$opt
\"
"
...
...
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