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
Nov 05, 2019
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()
...
@@ -33,7 +33,7 @@ epm_Install()
yum-rpm
)
yum-rpm
)
;;
;;
*
)
*
)
pkg_filenames
=
''
epm_update
||
return
(
pkg_filenames
=
''
epm_update
)
||
return
;;
;;
esac
esac
...
...
bin/epm-Upgrade
View file @
a81735f6
...
@@ -23,10 +23,10 @@ load_helper epm-upgrade
...
@@ -23,10 +23,10 @@ load_helper epm-upgrade
epm_Upgrade
()
epm_Upgrade
()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
yum-rpm
)
yum-rpm
|dnf-rpm
)
;;
;;
*
)
*
)
pkg_filenames
=
''
epm_update
||
return
(
pkg_filenames
=
''
epm_update
)
||
return
;;
;;
esac
esac
...
...
bin/epm-check_updated_repo
View file @
a81735f6
...
@@ -62,7 +62,7 @@ update_repo_if_needed()
...
@@ -62,7 +62,7 @@ update_repo_if_needed()
if
!
__is_repo_info_downloaded
||
!
__is_repo_info_uptodate
;
then
if
!
__is_repo_info_downloaded
||
!
__is_repo_info_uptodate
;
then
load_helper epm-update
load_helper epm-update
# FIXME: cleans!!!
# FIXME: cleans!!!
$
(
pkg_filenames
=
''
epm_update
)
(
pkg_filenames
=
''
epm_update
)
fi
fi
cd
-
>
/dev/null
||
fatal
cd
-
>
/dev/null
||
fatal
...
...
bin/epm-query
View file @
a81735f6
...
@@ -88,12 +88,12 @@ _shortquery_via_packages_list()
...
@@ -88,12 +88,12 @@ _shortquery_via_packages_list()
# Note: double call due stderr redirect
# Note: double call due stderr redirect
# Note: we use short=1 here due grep by ^name$
# Note: we use short=1 here due grep by ^name$
# separate first line for print out command
# 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
local
pkg
for
pkg
in
"
$@
"
;
do
for
pkg
in
"
$@
"
;
do
grepexp
=
$(
_get_grep_exp
$pkg
)
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
done
# TODO: print in query (for user): 'warning: package $pkg is not installed'
# TODO: print in query (for user): 'warning: package $pkg is not installed'
...
@@ -116,12 +116,12 @@ _query_via_packages_list()
...
@@ -116,12 +116,12 @@ _query_via_packages_list()
# Note: double call due stderr redirect
# Note: double call due stderr redirect
# Note: we use short=1 here due grep by ^name$
# Note: we use short=1 here due grep by ^name$
# separate first line for print out command
# 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
local
pkg
for
pkg
in
"
$@
"
;
do
for
pkg
in
"
$@
"
;
do
grepexp
=
$(
_get_grep_exp
$pkg
)
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
done
return
$res
return
$res
...
...
bin/epm-release_upgrade
View file @
a81735f6
...
@@ -85,7 +85,7 @@ __alt_repofix()
...
@@ -85,7 +85,7 @@ __alt_repofix()
local
TO
=
"
$1
"
local
TO
=
"
$1
"
load_helper epm-repofix
load_helper epm-repofix
showcmd epm repofix
showcmd epm repofix
quiet
=
1
pkg_filenames
=
''
epm_repofix
>
/dev/null
(
quiet
=
1
pkg_filenames
=
''
epm_repofix
>
/dev/null
)
# replace sign name
# replace sign name
if
[
-n
"
$TO
"
]
;
then
if
[
-n
"
$TO
"
]
;
then
__replace_text_in_alt_repo
"/^ *#/! s!
\[
alt
\]
![
$TO
]!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
alt
\]
![
$TO
]!g"
...
...
bin/epm-simulate
View file @
a81735f6
...
@@ -127,7 +127,7 @@ EOF
...
@@ -127,7 +127,7 @@ EOF
# use verbose for get package status
# use verbose for get package status
#pkg_filenames="$pkg-[0-9]" verbose=--verbose __epm_search_internal | egrep "(installed|upgrade)" && continue
#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" 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
res
=
1
info
"Package '
$pkg
' does not found in repository."
info
"Package '
$pkg
' does not found in repository."
done
done
...
...
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