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
769732e4
Commit
769732e4
authored
Jul 10, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix update and simulate for dnf
parent
772c82df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
epm-downgrade
bin/epm-downgrade
+3
-0
epm-simulate
bin/epm-simulate
+10
-2
epm-update
bin/epm-update
+6
-1
No files found.
bin/epm-downgrade
View file @
769732e4
...
...
@@ -58,6 +58,9 @@ epm_downgrade()
# can do update repobase automagically
sudocmd yum downgrade
$pkg_filename
;;
dnf-rpm
)
sudocmd dnf downgrade
$pkg_filename
;;
urpm-rpm
)
assure_exists urpm-reposync urpm-tools
sudocmd urpm-reposync
-v
...
...
bin/epm-simulate
View file @
769732e4
#!/bin/sh
#
# Copyright (C) 2012-201
4
Etersoft
# Copyright (C) 2012-201
4
Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-201
5
Etersoft
# Copyright (C) 2012-201
5
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
...
...
@@ -38,6 +38,8 @@ __check_yum_result()
grep
"^Complete!"
$1
&&
return
0
grep
"^Exiting on user Command"
$1
&&
return
0
grep
"^Exiting on user command"
$1
&&
return
0
# dnf issue
grep
"^Operation aborted."
$1
&&
return
0
# return default result by default
return
$2
}
...
...
@@ -78,6 +80,12 @@ EOF
RES
=
$?
clean_store_output
return
$RES
;;
dnf-rpm
)
LC_ALL
=
C store_output sudocmd dnf
--assumeno
install
$filenames
__check_yum_result
$RC_STDOUT
$?
RES
=
$?
clean_store_output
return
$RES
;;
urpm-rpm
)
CMD
=
"urpmi --test --auto"
;;
...
...
bin/epm-update
View file @
769732e4
...
...
@@ -40,7 +40,12 @@ case $PMTYPE in
sudocmd aptitude update
||
exit
;;
yum-rpm
)
sudocmd yum check-update
info
"update command is stubbed for yum"
#sudocmd yum check-update
;;
dnf-rpm
)
info
"update command is stubbed for dnf"
#sudocmd dnf check-update
;;
urpm-rpm
)
sudocmd urpmi.update
-a
...
...
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