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
abdb9cda
Commit
abdb9cda
authored
Aug 28, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace all 'epm assure' with 'assure_exists'
parent
e0c1ee7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
epm-download
bin/epm-download
+1
-1
epm-restore
bin/epm-restore
+2
-2
epm-sh-altlinux
bin/epm-sh-altlinux
+2
-2
epm-site
bin/epm-site
+1
-1
serv-enable
bin/serv-enable
+1
-1
No files found.
bin/epm-download
View file @
abdb9cda
...
...
@@ -150,7 +150,7 @@ __epm_print_url_alt_check()
local
pkg
=
$1
shift
local
tm
=
$(
mktemp
)
epm assure
curl
assure_exists
curl
load_helper epm-site
quiet
=
1
local
buildtime
=
$(
paoapi packages/
$pkg
| get_pao_var buildtime
)
...
...
bin/epm-restore
View file @
abdb9cda
...
...
@@ -365,7 +365,7 @@ __epm_restore_npm()
{
local
req_file
=
"
$1
"
epm assure
jq
||
fatal
assure_exists
jq
||
fatal
if
[
-n
"
$dryrun
"
]
;
then
local
lt
=
$(
mktemp
)
...
...
@@ -421,7 +421,7 @@ __epm_restore_perl_shyaml()
{
local
req_file
=
"
$1
"
epm assure
shyaml
||
fatal
assure_exists
shyaml
||
fatal
if
[
-n
"
$dryrun
"
]
;
then
local
lt
=
$(
mktemp
)
...
...
bin/epm-sh-altlinux
View file @
abdb9cda
...
...
@@ -27,8 +27,8 @@ tasknumber()
get_task_arepo_packages
()
{
local
res
epm assure
apt-repo
epm assure
curl
assure_exists
apt-repo
assure_exists
curl
info
"TODO: please, improve apt-repo to support arepo (i586-) packages for apt-repo list task"
showcmd
"curl -s -f http://git.altlinux.org/tasks/
$tn
/plan/arepo-add-x86_64-i586 | cut -f1"
...
...
bin/epm-site
View file @
abdb9cda
...
...
@@ -25,7 +25,7 @@ PAOURL="https://packages.altlinux.org"
paoapi
()
{
# http://petstore.swagger.io/?url=http://packages.altlinux.org/api/docs
epm assure
curl
||
return
1
assure_exists
curl
||
return
1
showcmd curl
"
$PAOURL
/api/
$1
"
a
=
''
curl
-s
--header
"Accept: application/json"
"
$PAOURL
/api/
$1
"
}
...
...
bin/serv-enable
View file @
abdb9cda
...
...
@@ -50,7 +50,7 @@ __serv_enable()
sudocmd rc-update add
$1
default
;;
runit
)
epm assure
$SERVICE
assure_exists
$SERVICE
[
-r
"/etc/sv/
$SERVICE
"
]
||
fatal
"Can't find /etc/sv/
$SERVICE
"
sudocmd
ln
-s
/etc/sv/
$SERVICE
/var/service/
;;
...
...
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