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
4aec1e7b
Commit
4aec1e7b
authored
Feb 22, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
c89a8552
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
10 deletions
+19
-10
epm-check
bin/epm-check
+3
-0
epm-conflicts
bin/epm-conflicts
+1
-1
epm-info
bin/epm-info
+3
-0
epm-programs
bin/epm-programs
+1
-1
epm-provides
bin/epm-provides
+5
-3
epm-sh-functions
bin/epm-sh-functions
+6
-5
No files found.
bin/epm-check
View file @
4aec1e7b
...
...
@@ -56,6 +56,9 @@ case $PMTYPE in
conary
)
sudocmd conary verify
;;
homebrew
)
sudocmd brew doctor
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-conflicts
View file @
4aec1e7b
...
...
@@ -25,7 +25,7 @@ epm_conflicts_files()
case
$(
get_package_type
$pkg_files
)
in
rpm
)
docmd
"rpm -q --conflicts -p"
docmd
"rpm -q --conflicts -p"
$pkg_files
;;
#deb)
# a= docmd dpkg -I $pkg_files | grep "^ *Depends:" | sed "s|^ *Depends:||g"
...
...
bin/epm-info
View file @
4aec1e7b
...
...
@@ -32,6 +32,9 @@ __epm_info_rpm_low()
# realize _files part per package, not by PMTYPE (see filelist)
epm_info
()
{
[
-n
"
$pkg_filenames
"
]
||
fatal
"Run info without names"
case
$PMTYPE
in
apt-rpm
)
__epm_info_rpm_low
&&
return
...
...
bin/epm-programs
View file @
4aec1e7b
...
...
@@ -25,7 +25,7 @@ epm_programs()
local
DESKTOPDIR
=
/usr/share/applications
[
-d
"
$DESKTOPDIR
"
]
||
fatal
"There is no
$DESKTOPDIR
dir on the system."
#find /usr/share/applications -type f -name "*.desktop" | while read f; do pkg_files="$f" quiet=1 short=1 epm_query_file ; done | sort -u
showcmd
"find
/usr/share/applications
-type f -name "
*
.desktop
" | xargs
$0
-qf --quiet --short | sort -u"
showcmd
"find
$DESKTOPDIR
-type f -name "
*
.desktop
" | xargs
$0
-qf --quiet --short | sort -u"
find /usr/share/applications
-type
f
-name
"*.desktop"
|
\
xargs
$0
-qf
--quiet
--short
|
sort
-u
}
bin/epm-provides
View file @
4aec1e7b
...
...
@@ -73,12 +73,14 @@ case $PMTYPE in
apt-dpkg
)
# FIXME: need fix for a few names case
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --provides"
else
echo
"Please inform the author how to get provides from dpkg"
fi
# CMD="rpm -q --provides"
#else
EXTRA_SHOWDOCMD
=
' | grep "Provides:"'
docmd apt-cache show
$pkg_names
|
grep
"Provides:"
return
fi
#
fi
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
...
...
bin/epm-sh-functions
View file @
4aec1e7b
...
...
@@ -23,7 +23,7 @@
inputisatty
()
{
# check stdin
tty
-s
tty
-s
2>/dev/null
}
isatty
()
...
...
@@ -47,7 +47,8 @@ check_tty()
export
TERM
# egrep from busybox may not --color
if
egrep
--help
|
grep
-q
--
"--color"
;
then
# egrep from MacOS print help to stderr
if
egrep
--help
2>&1 |
grep
-q
--
"--color"
;
then
EGREPCOLOR
=
"--color"
fi
...
...
@@ -80,15 +81,15 @@ restore_color()
echover
()
{
[
-
n
"
$verbose
"
]
||
return
[
-
z
"
$verbose
"
]
&&
return
echo
"
$*
"
>
&2
}
# echo string without EOL
# FIXME: -n on MacOS?
echon
()
{
echo
-n
"
$@
"
# default /bin/sh on MacOS does not recognize -n
/bin/echo
-n
"
$@
"
}
...
...
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