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
c368bbba
Commit
c368bbba
authored
Jan 13, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: add -g option for remote and locally repo clone
parent
8d3fcba4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
rpmgp
bin/rpmgp
+18
-3
No files found.
bin/rpmgp
View file @
c368bbba
...
@@ -152,13 +152,14 @@ phelp()
...
@@ -152,13 +152,14 @@ phelp()
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echog
"Options:"
echog
"Options:"
echog
"rpmgp [
-a -c -n
] [system] pkgname - download src.rpm from 'system' repository to RPM/SRPMS and install it"
echog
"rpmgp [
options
] [system] pkgname - download src.rpm from 'system' repository to RPM/SRPMS and install it"
echog
" name - installed package name or src.rpm"
echog
" name - installed package name or src.rpm"
echog
" system - name of system (ALT Linux by default if -a missed too)"
echog
" system - name of system (ALT Linux by default if -a missed too)"
echog
" -a search pkgname in all known repositories"
echog
" -a search pkgname in all known repositories"
echog
" -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
" -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -d download all matched packages"
echog
" -d download all matched packages"
echog
" -g remote clone repo to USER/packages and clone it locally"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -n do not install after download, just download in current dir"
echog
" -n do not install after download, just download in current dir"
echog
" -r refresh package list (download it again)"
echog
" -r refresh package list (download it again)"
...
@@ -167,13 +168,14 @@ phelp()
...
@@ -167,13 +168,14 @@ phelp()
}
}
TRYINST
=
"1"
TRYINST
=
"1"
while
getopts
:habcdlnrs opt
;
do
while
getopts
:habcd
g
lnrs opt
;
do
case
$opt
in
case
$opt
in
h
)
phelp
;
exit
0
;;
h
)
phelp
;
exit
0
;;
a
)
ALLSYSTEM
=
1
;;
a
)
ALLSYSTEM
=
1
;;
b
)
INSTALLBINARY
=
1
;;
b
)
INSTALLBINARY
=
1
;;
c
)
CHECKONLINE
=
1
;;
c
)
CHECKONLINE
=
1
;;
d
)
DOWNLOADALL
=
1
;;
d
)
DOWNLOADALL
=
1
;;
g
)
CLONEGIT
=
1
;;
l
)
LISTREQS
=
1
;;
l
)
LISTREQS
=
1
;;
n
)
TRYINST
=
""
;;
n
)
TRYINST
=
""
;;
r
)
UPDATECACHE
=
1
;;
r
)
UPDATECACHE
=
1
;;
...
@@ -229,9 +231,22 @@ if [ -n "$INSTALLBINARY" ] ; then
...
@@ -229,9 +231,22 @@ if [ -n "$INSTALLBINARY" ] ; then
exit
0
exit
0
fi
fi
# clone remote git
if
[
-n
"
$CLONEGIT
"
]
;
then
PKGNAME
=
$1
INITLETTER
=
$(
echo
$PKGNAME
|
sed
"s/^
\(
.
\)
.*/
\1
/g"
)
# http://git.altlinux.org/srpms/N/NAME.git
echo
"Remote clone from /srpms/
$INITLETTER
/
$PKGNAME
.git ..."
ssh
$GIRARHOST
clone /srpms/
$INITLETTER
/
$PKGNAME
.git packages/
$PKGNAME
.git
||
fatal
"Can't remote clone."
git clone git.alt:packages/
$PKGNAME
.git
echo
"See other repos at
$GIRARHOST
:"
list_git_package
$PKGNAME
exit
0
fi
# lists packages for build
# lists packages for build
if
[
-n
"
$LISTREQS
"
]
;
then
if
[
-n
"
$LISTREQS
"
]
;
then
print_target_buildreq
$
1
print_target_buildreq
$
PKGNAME
exit
0
exit
0
fi
fi
...
...
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