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
3b6de19b
Commit
3b6de19b
authored
Jun 29, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix simulate for ArchLinux
parent
213fcadf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
epm-simulate
bin/epm-simulate
+11
-2
No files found.
bin/epm-simulate
View file @
3b6de19b
...
@@ -42,6 +42,15 @@ __check_yum_result()
...
@@ -42,6 +42,15 @@ __check_yum_result()
return
$2
return
$2
}
}
__check_pacman_result
()
{
grep
"^error: target not found:"
$1
&&
return
1
grep
"^Total Installed Size:"
$1
&&
return
0
grep
"^Total Download Size:"
$1
&&
return
0
# return default result by default
return
$2
}
_epm_do_simulate
()
_epm_do_simulate
()
{
{
...
@@ -84,8 +93,8 @@ _epm_do_simulate()
...
@@ -84,8 +93,8 @@ _epm_do_simulate()
done
done
return
$res
;;
return
$res
;;
pacman
)
pacman
)
showcmd
$SUDO
pacman
-v
-S
$filenames
LC_ALL
=
C
echo
no | store_output sudocmd
pacman
-v
-S
$filenames
echo
no |
$SUDO
pacman
-v
-S
$filenames
__check_pacman_result
$RC_STDOUT
$?
return
;;
return
;;
slackpkg
)
slackpkg
)
#docmd /usr/sbin/slackpkg -batch=on -default_answer=yes download
#docmd /usr/sbin/slackpkg -batch=on -default_answer=yes download
...
...
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