Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
1c768dfd
Commit
1c768dfd
authored
Oct 19, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
girar: add workaround against ALT bug #22745
parent
a310f393
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
girar
share/eterbuild/functions/girar
+12
-1
No files found.
share/eterbuild/functions/girar
View file @
1c768dfd
...
...
@@ -3,17 +3,28 @@
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
load_mod repos
# Is allow connect with ssh to the GIRARHOST server?
has_ssh_girar_access
()
{
ssh
$GIRARHOST
help
>
/dev/null 2>&1
}
check_http_status
()
{
a
=
curl
-s
-I
"
$1
"
|
grep
HTTP |
grep
-q
"200 OK"
}
# Returns true if repo with path from first arg is exits on the remote GIRARHOST server
is_exist_git_repo
()
{
ssh
$GIRARHOST
ls
$1
>
/dev/null 2>&1
if
has_ssh_girar_access
;
then
ssh
$GIRARHOST
ls
$1
>
/dev/null 2>&1
&&
return
fi
# TODO: this is workaround for ALT bug #22745
# https://bugzilla.altlinux.org/show_bug.cgi?id=22745
check_http_status
$(
get_git_url
$GIRARHOST
)
/
$1
}
...
...
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