Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
c3c41e41
Commit
c3c41e41
authored
Feb 08, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repl internal_repl_list(): fix again
parent
b9fdd51d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
repl
share/eterbuild/functions/repl
+3
-3
No files found.
share/eterbuild/functions/repl
View file @
c3c41e41
...
...
@@ -191,7 +191,7 @@ internal_repl_list()
local
ARCHEXT
=
"
$2
"
local
FINDPKG
=
$REPLBASE
.
$PKGVENDOR
.
$DISTRVERSION$ARCHEXT
local
FINDPKGVERS
=
''
local
FINDPKGGREP
=
$
FINDPKG
local
FINDPKGGREP
=
$
REPLBASE
.
$PKGVENDOR
.
$DISTRVERSION
# 7.3 -> 7, 20.04 -> 20
local
BASEDISTRVERSION
=
${
DISTRVERSION
/\.*/
}
if
[
"
$DISTRVERSION
"
!=
"
$BASEDISTRVERSION
"
]
;
then
...
...
@@ -206,7 +206,7 @@ internal_repl_list()
echo
$FINDPKGVERS
ls
-1
$REPLBASE
.
$PKGVENDOR
*
$ARCHEXT
2>/dev/null |
grep
-v
"
$PKGVENDOR$ARCHEXT
\$
"
)
|
grep
-v
"^
\$
"
|
sed
-e
"s|
$ARCHEXT
\$
||"
|
\
sort
-u
|
sort
-
r
-t
.
-k
3
|
sed
-e
"s|
$|$ARCHEXT
|"
sort
-u
|
sort
-
t
.
-k
3 |
grep
"^
$FINDPKGGREP
\$
"
-A1000
|
sort
-r
-t
.
-k
3
|
sed
-e
"s|
$|$ARCHEXT
|"
else
(
# sure we use our version firstly
...
...
@@ -215,7 +215,7 @@ internal_repl_list()
# skip all arches
ls
-1
$REPLBASE
.
$PKGVENDOR
*
2>/dev/null |
grep
-v
"
\.
x86_64
\$
"
|
grep
-v
"
\.
aarch64
\$
"
|
grep
-v
"
\.
x86_64-i586
\$
"
)
|
grep
-v
"^
\$
"
|
\
sort
-u
|
sort
-r
-t
.
-k
3
sort
-u
|
sort
-
t
.
-k
3 |
grep
"^
$FINDPKGGREP
\$
"
-A1000
|
sort
-
r
-t
.
-k
3
fi
echo
$REPLBASE
.
$PKGVENDOR$ARCHEXT
[
"
$PKGVENDOR
"
=
"alt"
]
||
echo
"
$REPLBASE
.
$PKGFORMAT$ARCHEXT
"
...
...
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