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
1f554efb
Commit
1f554efb
authored
Feb 05, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-simulate: skip simulate if zypper does not have --dry-run
parent
5e523df0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
epm-install
bin/epm-install
+2
-0
epm-simulate
bin/epm-simulate
+13
-3
No files found.
bin/epm-install
View file @
1f554efb
...
...
@@ -109,6 +109,7 @@ epm_ni_install_names()
sudocmd urpmi
--auto
$URPMOPTIONS
$@
return
;;
zypper-rpm
)
# FIXME: returns true ever no package found, need check for "no found", "Nothing to do."
yes
| sudocmd zypper
--non-interactive
$ZYPPEROPTIONS
install
$@
return
;;
pkg_add
)
...
...
@@ -141,6 +142,7 @@ epm_install_files()
case
$PMTYPE
in
apt-rpm
)
sudocmd rpm
-Uvh
$force
$nodeps
$@
&&
return
# TODO: check for "is already installed"
# if run with --nodeps, do not fallback on hi level
[
-n
"
$nodeps
"
]
&&
return
...
...
bin/epm-simulate
View file @
1f554efb
#!/bin/sh
#
# Copyright (C) 2012 Etersoft
# Copyright (C) 2012 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012
-2013
Etersoft
# Copyright (C) 2012
-2013
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
...
...
@@ -20,6 +20,12 @@
load_helper epm-install
load_helper epm-search
# for zypper before SUSE/11.0
__use_zypper_dry_run
()
{
a
=
zypper
install
--help
2>&1 |
grep
-q
--
"--dry-run"
&&
echo
"--dry-run"
}
_epm_do_simulate
()
{
local
CMD
...
...
@@ -38,7 +44,11 @@ _epm_do_simulate()
CMD
=
"urpmi --test --auto"
;;
zypper-rpm
)
CMD
=
"zypper --non-interactive install --dry-run"
if
!
__use_zypper_dry_run
>
/dev/null
;
then
echo
"zypper is too old: does not support --dry-run"
return
fi
CMD
=
"zypper --non-interactive install"
;;
emerge
)
echo
"FIXME: Skip with emerge"
...
...
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