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
655546a8
Commit
655546a8
authored
Oct 16, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_task_arepo_packages: fix curl result checking and add warning
parent
60fc6017
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
epm-sh-altlinux
bin/epm-sh-altlinux
+3
-2
No files found.
bin/epm-sh-altlinux
View file @
655546a8
...
@@ -125,14 +125,15 @@ tasknumber()
...
@@ -125,14 +125,15 @@ tasknumber()
# todo: improve apt-repo
# todo: improve apt-repo
get_task_arepo_packages
()
get_task_arepo_packages
()
{
{
local
res
epm assure apt-repo
epm assure apt-repo
epm assure curl
epm assure curl
info
"TODO: please, improve apt-repo to support arepo (i586-) packages for apt-repo list task"
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"
showcmd
"curl -s -f http://git.altlinux.org/tasks/
$tn
/plan/arepo-add-x86_64-i586 | cut -f1"
# TODO: retrieve one time
# TODO: retrieve one time
a
=
''
curl
-s
http://git.altlinux.org/tasks/
$tn
/plan/arepo-add-x86_64-i586 2>/dev/null
>
/dev/null
||
return
res
=
"
$(
a
=
''
curl
-s
-f
http://git.altlinux.org/tasks/
$tn
/plan/arepo-add-x86_64-i586 2>/dev/null
)
"
||
{
warning
"There is a download error for x86_64-i586 arepo."
;
return
;
}
a
=
''
curl
-s
-f
http://git.altlinux.org/tasks/
$tn
/plan/arepo-add-x86_64-i586 2>/dev/null
|
cut
-f1
echo
"
$res
"
|
cut
-f1
}
}
# use assure apt-repo before
# use assure apt-repo before
...
...
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