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
7317b5f5
Commit
7317b5f5
authored
Oct 16, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add girar module with get_girar_repo func
parent
833915c0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
16 deletions
+35
-16
rpmgp
bin/rpmgp
+1
-1
girar
share/eterbuild/functions/girar
+34
-0
git
share/eterbuild/functions/git
+0
-15
No files found.
bin/rpmgp
View file @
7317b5f5
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
# load common functions, compatible with local and installed script
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm repl git rpm web repos buildsrpm
load_mod rpm repl git rpm web repos buildsrpm
girar
# loads repos file and fill SYSNAME and SYSURL arrays
# loads repos file and fill SYSNAME and SYSURL arrays
load_systems_list
()
load_systems_list
()
...
...
share/eterbuild/functions/girar
0 → 100644
View file @
7317b5f5
#!/bin/bash
# 2013 Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# Is allow connect with ssh to the GIRARHOST server?
has_ssh_girar_access
()
{
ssh
$GIRARHOST
help
>
/dev/null 2>&1
}
# 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
}
# get gear repo for package name
get_girar_repo
()
{
assert_var GIRARHOST
local
PKGNAME
=
"
$1
"
# http://git.altlinux.org/gears/N/NAME.git
local
REPOPATH
=
"
$(
initial_letter
$PKGNAME
)
/
$PKGNAME
.git"
local
RREPO
=
"/gears/
$REPOPATH
"
if
!
is_exist_git_repo
$RREPO
;
then
RREPO
=
"/srpms/
$REPOPATH
"
is_exist_git_repo
$RREPO
||
return
fi
echo
"
$RREPO
"
}
share/eterbuild/functions/git
View file @
7317b5f5
...
@@ -41,21 +41,6 @@ get_remote_git_list()
...
@@ -41,21 +41,6 @@ get_remote_git_list()
done
done
}
}
# Is allow connect with ssh to the GIRARHOST server?
has_ssh_girar_access
()
{
ssh
$GIRARHOST
help
>
/dev/null 2>&1
}
# 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
}
# Check if $1 like git.alt or git.eter, git.something
# Check if $1 like git.alt or git.eter, git.something
is_girar_name
()
is_girar_name
()
{
{
...
...
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