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
etersoft
eepm
Commits
aa44e477
Commit
aa44e477
authored
Feb 12, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-remove: don't use hilevel command if --nodeps, change to a writable dir (/tmp) before remove
parent
0ca344d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
epm-remove
bin/epm-remove
+5
-3
No files found.
bin/epm-remove
View file @
aa44e477
#!/bin/sh
#
# Copyright (C) 2012-2014, 2016, 2017, 2019 Etersoft
# Copyright (C) 2012-2014, 2016, 2017, 2019 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2012-2014, 2016, 2017, 2019
, 2020
Etersoft
# Copyright (C) 2012-2014, 2016, 2017, 2019
, 2020
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
...
...
@@ -31,7 +31,9 @@ epm_remove_low()
case
$PMTYPE
in
*
-rpm
)
cd
/tmp
||
fatal
sudocmd rpm
-ev
$nodeps
$@
cd
-
>
/dev/null
return
;;
*
-dpkg
|
-dpkg
)
# shellcheck disable=SC2046
...
...
@@ -286,7 +288,7 @@ epm_remove()
local
STATUS
=
$?
# TODO: check if we need continue with hi level
if
[
-n
"
$direct
"
]
;
then
if
[
-n
"
$direct
"
]
||
[
-n
"
$nodeps
"
]
;
then
return
$STATUS
fi
...
...
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