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
Nurlan
eepm
Commits
a81735f6
Commit
a81735f6
authored
5 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround against ALT bug 37272
parent
0391547b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
epm-Install
bin/epm-Install
+1
-1
epm-Upgrade
bin/epm-Upgrade
+2
-2
epm-check_updated_repo
bin/epm-check_updated_repo
+1
-1
epm-query
bin/epm-query
+4
-4
epm-release_upgrade
bin/epm-release_upgrade
+1
-1
epm-simulate
bin/epm-simulate
+1
-1
No files found.
bin/epm-Install
View file @
a81735f6
...
...
@@ -33,7 +33,7 @@ epm_Install()
yum-rpm
)
;;
*
)
pkg_filenames
=
''
epm_update
||
return
(
pkg_filenames
=
''
epm_update
)
||
return
;;
esac
...
...
This diff is collapsed.
Click to expand it.
bin/epm-Upgrade
View file @
a81735f6
...
...
@@ -23,10 +23,10 @@ load_helper epm-upgrade
epm_Upgrade
()
{
case
$PMTYPE
in
yum-rpm
)
yum-rpm
|dnf-rpm
)
;;
*
)
pkg_filenames
=
''
epm_update
||
return
(
pkg_filenames
=
''
epm_update
)
||
return
;;
esac
...
...
This diff is collapsed.
Click to expand it.
bin/epm-check_updated_repo
View file @
a81735f6
...
...
@@ -62,7 +62,7 @@ update_repo_if_needed()
if
!
__is_repo_info_downloaded
||
!
__is_repo_info_uptodate
;
then
load_helper epm-update
# FIXME: cleans!!!
$
(
pkg_filenames
=
''
epm_update
)
(
pkg_filenames
=
''
epm_update
)
fi
cd
-
>
/dev/null
||
fatal
...
...
This diff is collapsed.
Click to expand it.
bin/epm-query
View file @
a81735f6
...
...
@@ -88,12 +88,12 @@ _shortquery_via_packages_list()
# Note: double call due stderr redirect
# Note: we use short=1 here due grep by ^name$
# separate first line for print out command
short
=
1
pkg_filenames
=
$firstpkg
epm_packages |
grep
--
"
$grepexp
"
&&
res
=
0
||
res
=
1
(
short
=
1
pkg_filenames
=
$firstpkg
epm_packages |
grep
--
"
$grepexp
"
)
&&
res
=
0
||
res
=
1
local
pkg
for
pkg
in
"
$@
"
;
do
grepexp
=
$(
_get_grep_exp
$pkg
)
short
=
1
pkg_filenames
=
$pkg
epm_packages 2>/dev/null
|
grep
--
"
$grepexp
"
||
res
=
1
(
short
=
1
pkg_filenames
=
$pkg
epm_packages 2>/dev/null
)
|
grep
--
"
$grepexp
"
||
res
=
1
done
# TODO: print in query (for user): 'warning: package $pkg is not installed'
...
...
@@ -116,12 +116,12 @@ _query_via_packages_list()
# Note: double call due stderr redirect
# Note: we use short=1 here due grep by ^name$
# separate first line for print out command
short
=
1
pkg_filenames
=
$firstpkg
epm_packages |
grep
-q
--
"
$grepexp
"
&&
quiet
=
1
pkg_filenames
=
$firstpkg
epm_packages
&&
res
=
0
||
res
=
1
(
short
=
1
pkg_filenames
=
$firstpkg
epm_packages
)
|
grep
-q
--
"
$grepexp
"
&&
(
quiet
=
1
pkg_filenames
=
$firstpkg
epm_packages
)
&&
res
=
0
||
res
=
1
local
pkg
for
pkg
in
"
$@
"
;
do
grepexp
=
$(
_get_grep_exp
$pkg
)
short
=
1
pkg_filenames
=
$pkg
epm_packages 2>/dev/null |
grep
-q
--
"
$grepexp
"
&&
quiet
=
1
pkg_filenames
=
$pkg
epm_packages
||
res
=
1
(
short
=
1
pkg_filenames
=
$pkg
epm_packages 2>/dev/null
)
|
grep
-q
--
"
$grepexp
"
&&
(
quiet
=
1
pkg_filenames
=
$pkg
epm_packages
)
||
res
=
1
done
return
$res
...
...
This diff is collapsed.
Click to expand it.
bin/epm-release_upgrade
View file @
a81735f6
...
...
@@ -85,7 +85,7 @@ __alt_repofix()
local
TO
=
"
$1
"
load_helper epm-repofix
showcmd epm repofix
quiet
=
1
pkg_filenames
=
''
epm_repofix
>
/dev/null
(
quiet
=
1
pkg_filenames
=
''
epm_repofix
>
/dev/null
)
# replace sign name
if
[
-n
"
$TO
"
]
;
then
__replace_text_in_alt_repo
"/^ *#/! s!
\[
alt
\]
![
$TO
]!g"
...
...
This diff is collapsed.
Click to expand it.
bin/epm-simulate
View file @
a81735f6
...
...
@@ -127,7 +127,7 @@ EOF
# use verbose for get package status
#pkg_filenames="$pkg-[0-9]" verbose=--verbose __epm_search_internal | egrep "(installed|upgrade)" && continue
#pkg_filenames="$pkg" verbose=--verbose __epm_search_internal | egrep "(installed|upgrade)" && continue
pkg_filenames
=
"
$pkg
"
__epm_search_internal
|
grep
-q
"^
$pkg
-[0-9]"
&&
continue
(
pkg_filenames
=
"
$pkg
"
__epm_search_internal
)
|
grep
-q
"^
$pkg
-[0-9]"
&&
continue
res
=
1
info
"Package '
$pkg
' does not found in repository."
done
...
...
This diff is collapsed.
Click to expand it.
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