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
eec66586
You need to sign in or sign up before continuing.
Commit
eec66586
authored
Aug 26, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: use -b for REPONAME set, use -i for install build requires
parent
3f5a538a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
rpmgp
bin/rpmgp
+9
-5
No files found.
bin/rpmgp
View file @
eec66586
...
...
@@ -145,7 +145,7 @@ update_cache_list()
done
}
Usage
=
"Usage: rpmgp [GIRAR/remote alias] [options]
[-
$CURRENTBRANCHNAME
]
[system] pkgname"
Usage
=
"Usage: rpmgp [GIRAR/remote alias] [options]
-b
$EXAMPLEALTDISTRVERSION
[system] pkgname"
mygetopts
()
{
Descr
=
"rpmgp (Get Package) - various package download operations"
...
...
@@ -160,6 +160,7 @@ phelp()
echo
echog
"Options:"
echog
" -a search pkgname in all known repositories"
echog
" -b REPONAME binary repository name (4.1, p5, t6 and so on)"
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -d download all matched packages"
echog
" -g clone last built package repo"
...
...
@@ -168,18 +169,20 @@ phelp()
echog
" -m migrate to gear from spec/srpm"
echo
echog
"Ext. options:"
echog
" -
b
install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
" -
i
install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -r refresh package list (download it again)"
echog
" -s list all known remote repositories"
exit
0
}
while
getopts
:habcdglmprs opt
;
do
while
getopts
:hab
:i
cdglmprs opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
a
)
ALLSYSTEM
=
1
;;
b
)
INSTALLBINARY
=
1
;;
# see functions/alt:set_binaryrepo() for BINARYREPONAME
b
)
BINARYREPONAME
=
$OPTARG
;;
i
)
INSTALLBINARY
=
1
;;
c
)
CHECKONLINE
=
1
;;
d
)
DOWNLOADALL
=
1
;;
g
)
CLONEGIT
=
1
;;
...
...
@@ -213,6 +216,7 @@ LISTRPMARGS=$@
set_girar_host
$1
&&
shift
parse_cmd_pre
"
$@
"
mygetopts
$LISTARGS
# optional arg
...
...
@@ -237,7 +241,7 @@ fi
if
[
-n
"
$INSTALLBINARY
"
]
;
then
# pack by LISTNAMES list
pack_src_rpm
--commit
$LISTRPMARGS
epm
install
--skip-installed
$(
$ETERBUILDBIN
/rpmreqs
-p
$LISTBUILT
)
docmd
epm
install
--skip-installed
$(
$ETERBUILDBIN
/rpmreqs
-p
$LISTBUILT
)
exit
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