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
d65382aa
Commit
d65382aa
authored
Jun 30, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbs: add -a option for add to shared task
parent
dedd2761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
rpmbs
bin/rpmbs
+21
-10
No files found.
bin/rpmbs
View file @
d65382aa
...
...
@@ -43,21 +43,23 @@ phelp()
echog
"Options:"
echog
" -s - sign package(s) and move it to upload dir"
echog
" -c - only sign package(s) with checking"
echog
" -u - sign package(s) and upload it to Incoming (backports)"
echog
" -U - sign package(s) and upload it to Incoming (updates)"
echog
" -d - remove package(s) from SRPMS and Incoming"
echog
" -u - sign package(s), upload it and run build"
echog
" -a TASK - sign package(s), update it and add to task TASK"
# echog " -U - sign package(s) and upload it to Incoming (updates)"
# echog " -d - remove package(s) from SRPMS and Incoming"
echog
" -n - do not check with sisyphus_check before upload"
echog
" -o - create nosrc.rpm package"
echog
" -z - create src.rpm with compatible gzip compression"
}
while
getopts
:hscuUdnoz opt
;
do
while
getopts
:hscuUdno
a:
z opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
s
)
SIGN
=
1
;;
c
)
CHECKONLY
=
1
;
SIGN
=
1
;;
u
)
UPLOADNOW
=
1
;
SIGN
=
1
;;
U
)
UPLOADNOW
=
1
;
SIGN
=
1
;
UPDATES
=
1
;;
# U) UPLOADNOW=1 ; SIGN=1 ; UPDATES=1 ;;
a
)
UPLOADNOW
=
1
;
SIGN
=
1
;
TASKNUMBER
=
$OPTARG
;;
n
)
NOCHECK
=
1
;
;;
o
)
NOSOURCE
=
1
;
;;
z
)
export
USE_LEGACY_COMPRESSION
=
1
;
...
...
@@ -151,9 +153,13 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
check_gear_and_tag
$ETERBUILDBIN
/gpush
||
fatal
"Git push failed. Possibly you need to run ginit for create remote repo."
TAG
=
$VERSION
-
$RELEASE
ssh
$GIRARHOST
task new
ssh
$GIRARHOST
task add repo
$BASENAME
$TAG
||
ssh
$GIRARHOST
task
rm
ssh
$GIRARHOST
task run
if
[
-n
"
$TASKNUMBER
"
]
;
then
ssh
$GIRARHOST
task add
$TASKNUMBER
repo
$BASENAME
$TAG
else
ssh
$GIRARHOST
task new
ssh
$GIRARHOST
task add repo
$BASENAME
$TAG
||
ssh
$GIRARHOST
task
rm
ssh
$GIRARHOST
task run
fi
echo
"run task
$BASENAME
with tag
$TAG
at
$GIRARHOST
(
$MENV
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
exit
fi
...
...
@@ -242,8 +248,13 @@ if [ -n "$SIGN" ]; then
for
i
in
$LISTBUILT
;
do
TASKLIST
=
"
$TASKLIST
srpm
$(
basename
$i
)
"
done
echo
"Create task for
$TASKLIST
"
ssh
$GIRARHOST
build
-b
$BINARYREPO
$TASKLIST
if
[
-n
"
$TASKNUMBER
"
]
;
then
echo
"Add
$TASKLIST
to task
$TASKNUMBER
"
ssh
$GIRARHOST
task add
$TASKNUMBER
srpm
$TASKLIST
else
echo
"Create task for
$TASKLIST
"
ssh
$GIRARHOST
build
-b
$BINARYREPO
$TASKLIST
fi
for
i
in
$LISTBUILT
;
do
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
...
...
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