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
4a45569e
Commit
4a45569e
authored
Oct 27, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-prescription: small fixes
parent
f7bf1732
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
epm-prescription
bin/epm-prescription
+8
-5
epm-repack
bin/epm-repack
+1
-1
No files found.
bin/epm-prescription
View file @
4a45569e
...
...
@@ -31,7 +31,7 @@ __remove_installed_app()
[
-d
"
$epm_vardir
"
]
||
return
0
local
i
for
i
in
$*
;
do
$SUDO
sed
-i
'/^$i$/d'
$epm_vardir
/installed-app
$SUDO
sed
-i
"/^
$i$/
d"
$epm_vardir
/installed-app
done
return
0
}
...
...
@@ -85,14 +85,15 @@ fi
if
[
"
$1
"
=
"--remove"
]
;
then
shift
echo
"Installed::"
#__check_installed_app "$1" || fatal "$1 is not installed"
__epm_prescription_run
$1
--remove
&&
__remove_installed_app
"
$@
"
__epm_prescription_run
$1
--remove
__remove_installed_app
"
$@
"
exit
fi
if
[
"
$1
"
=
"--list"
]
;
then
if
[
"
$1
"
=
"--list"
]
||
[
"
$1
"
=
"--installed"
]
;
then
shift
echo
"Installed:"
local
i
for
i
in
$(
__list_installed_app
)
;
do
printf
" %-20s - %s
\n
"
"
$i
"
"
$(
$psdir
/
$i
.sh
--description
2>/dev/null
)
"
...
...
@@ -105,9 +106,11 @@ if [ "$1" == "--list-all" ] || [ -z "$*" ] ; then
for
i
in
$psdir
/
*
.sh
;
do
printf
" %-20s - %s
\n
"
"
$(
basename
$i
.sh
)
"
"
$(
$i
--description
2>/dev/null
)
"
done
echo
echo
"run epm play --list to list installed only or --remove to remove one"
exit
fi
__check_installed_app
"
$1
"
&&
info
"
$1
is already installed"
&&
exit
1
__epm_prescription_run
"
$1
"
--run
&&
__save_installed_app
$1
__epm_prescription_run
"
$1
"
--run
&&
__save_installed_app
"
$1
"
}
bin/epm-repack
View file @
4a45569e
...
...
@@ -97,7 +97,7 @@ __fix_spec()
# drop forbidded paths
# https://bugzilla.altlinux.org/show_bug.cgi?id=38842
for
i
in
/ /etc /etc/init.d /etc/systemd /bin /opt /usr /usr/bin /usr/share /usr/share/doc /var /var/log /var/run
\
/etc/cron.daily /usr/share/man /usr/share/man/man1 /usr/share/appdata /usr/share/applications /usr/share/menu
;
do
/etc/cron.daily /usr/share/
icons /usr/share/pixmaps /usr/share/
man /usr/share/man/man1 /usr/share/appdata /usr/share/applications /usr/share/menu
;
do
sed
-i
-e
"s|^%dir
\"
$i
/*
\"
$|
|"
\
-e
"s|^
\"
$i
/*
\"
$|
|"
\
-e
"s|^
$i
/*
$|
|"
\
...
...
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