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
71f6ec13
Commit
71f6ec13
authored
Aug 20, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: fix for get via public url
parent
a315e553
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
rpmgp
bin/rpmgp
+11
-6
config
share/eterbuild/functions/config
+0
-1
No files found.
bin/rpmgp
View file @
71f6ec13
...
...
@@ -195,11 +195,12 @@ phelp()
echog
" -i install packages needed for build (use epm)"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -r refresh package list (download it again)"
echog
" -p force use public access to the git repo"
echog
" -s list all known remote repositories"
exit
0
}
while
getopts
:hab:icdglmprs opt
;
do
while
getopts
:hab:icdglmp
p
rs opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
a
)
ALLSYSTEM
=
1
;;
...
...
@@ -294,10 +295,12 @@ git_clone()
{
local
RREPO
=
"
$1
"
# Test if ssh access is available
if
[
-z
"
$PUBLICACCESS
"
]
&&
giter check girar access
;
then
if
[
-z
"
$PUBLICACCESS
"
]
&&
giter
$GITHOST
check girar access
;
then
docmd git clone
$GIRARHOST
:
$RREPO
else
docmd git clone
$GIRARURL
/
$RREPO
local
GIRARURL
=
$(
get_git_url
$GITHOST
)
[
-n
"
$GIRARURL
"
]
||
fatal
"Can't get public URL for
$GIRHOST
"
docmd git clone
$GIRARURL$RREPO
.git
fi
}
...
...
@@ -345,7 +348,7 @@ if [ -n "$CLONEGIT" ] ; then
fi
echo
"See other repos at
$GIRARHOST
:"
giter list packages
$PKGNAME
giter
$GITHOST
list packages
$PKGNAME
exit
$?
fi
...
...
@@ -399,7 +402,9 @@ if [ -n "$CHECKONLINE" ] ; then
if
[
-n
"
$GIRAR_USER
"
]
;
then
# FIXME: we have a function to get correct url
GITURL
=
"
$GIRARURL
/people/
$GIRAR_USER
/packages/
$PKGNAME
.git"
local
GIRARURL
=
$(
get_git_url
$GITHOST
)
[
-n
"
$GIRARURL
"
]
||
fatal
"Can't get public URL for
$GIRHOST
"
GITURL
=
"
${
GIRARURL
}
people/
$GIRAR_USER
/packages/
$PKGNAME
.git"
if
$GET
-d
$GITURL
;
then
echog
"Published at
$GITURL
by
$GIRAR_USER
"
else
...
...
@@ -407,7 +412,7 @@ if [ -n "$CHECKONLINE" ] ; then
fi
fi
echo
"Get repositories at
$GIRARHOST
:"
giter list packages
$PKGNAME
giter
$GITHOST
list packages
$PKGNAME
set_binaryrepo
$MENV
...
...
share/eterbuild/functions/config
View file @
71f6ec13
...
...
@@ -62,7 +62,6 @@ MENV=SS
#SSH_KEYFILE=~/.ssh/id_dsa
GIRARHOST
=
git.alt
GIRARURL
=
"http://git.altlinux.org"
# Timeout in sec for ssh commands
SSHTIMEOUT
=
300
...
...
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