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
144606ca
Commit
144606ca
authored
Apr 07, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set build ok flag only if all build is done
parent
9924cdab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
myhsh
bin/myhsh
+4
-3
rpmbb
bin/rpmbb
+6
-3
rpmgp
bin/rpmgp
+4
-3
No files found.
bin/myhsh
View file @
144606ca
...
@@ -100,17 +100,18 @@ for i in $LISTNAMES
...
@@ -100,17 +100,18 @@ for i in $LISTNAMES
do
do
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
echo
"Build in hasher (
$MENV
) in
$HASHERDIR
dir"
>
$LOGFILE
echo
"Build in hasher (
$MENV
) in
$HASHERDIR
dir"
>
$LOGFILE
rm
-f
$LOGFILE
.
failed
rm
-f
$LOGFILE
.
ok
echog
"Build in hasher:
$i
(arg:
$HASHERARG
--build-args
\"
$BUILDARGS
\"
, distro:
$MENV
, hasherdir:
$HASHERDIR
)"
echog
"Build in hasher:
$i
(arg:
$HASHERARG
--build-args
\"
$BUILDARGS
\"
, distro:
$MENV
, hasherdir:
$HASHERDIR
)"
# Note: hasher is already use renice for low priority
# Note: hasher is already use renice for low priority
showcmd
$HSH
$HASHERARG
--build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
showcmd
$HSH
$HASHERARG
--build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
(
$HSH
$HASHERARG
--build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
| colorify
(
$HSH
$HASHERARG
--build-args
"
$BUILDARGS
"
--
$HASHERDIR
$i
2>&1
&&
touch
$LOGFILE
.ok
)
|
tee
-a
$LOGFILE
| colorify
test
-L
$HASHERDIR
/BUILD
||
ln
-s
chroot
/usr/src/RPM/BUILD
$HASHERDIR
/
test
-L
$HASHERDIR
/BUILD
||
ln
-s
chroot
/usr/src/RPM/BUILD
$HASHERDIR
/
if
[
-f
$LOGFILE
.failed
]
;
then
if
[
!
-f
$LOGFILE
.ok
]
;
then
RESULT
=
1
RESULT
=
1
break
break
fi
fi
rm
-f
$LOGFILE
.ok
check_log
$LOGFILE
;
RESULT
=
$?
check_log
$LOGFILE
;
RESULT
=
$?
test
$RESULT
=
1
&&
break
test
$RESULT
=
1
&&
break
echog
"########## Build of
`
basename
$i
`
is done in hasher
$MENV
#############"
echog
"########## Build of
`
basename
$i
`
is done in hasher
$MENV
#############"
...
...
bin/rpmbb
View file @
144606ca
...
@@ -117,10 +117,13 @@ do
...
@@ -117,10 +117,13 @@ do
fi
fi
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
LOGFILE
=
"
$LOGDIR
/
`
basename
$NAMESRPMIN
.src.rpm
`
$MENVARG
.log"
echo
"Build in native system"
>
$LOGFILE
echo
"Build in native system"
>
$LOGFILE
rm
-f
$LOGFILE
.failed
rm
-f
$LOGFILE
.ok
(
uni_rpmbuild
--commit
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$BUILDARCH
2>&1
||
touch
$LOGFILE
.failed
)
|
tee
-a
$LOGFILE
| colorify
(
uni_rpmbuild
--commit
$i
-bb
$LISTRPMARGS
$NODEPS
--target
$BUILDARCH
2>&1
&&
touch
$LOGFILE
.ok
)
|
tee
-a
$LOGFILE
| colorify
[
-r
"
$LOGFILE
.ok"
]
RET
=
$?
rm
-f
$LOGFILE
.ok
[
-r
"
$LOGFILE
.failed"
]
&&
RET
=
1
||
RET
=
0
if
[
"
$RET
"
=
"0"
]
;
then
if
[
"
$RET
"
=
"0"
]
;
then
check_log
$LOGFILE
check_log
$LOGFILE
RET
=
$?
RET
=
$?
...
...
bin/rpmgp
View file @
144606ca
...
@@ -87,14 +87,15 @@ get_list()
...
@@ -87,14 +87,15 @@ get_list()
#curl -l $URL/ >$LIST
#curl -l $URL/ >$LIST
touch
$LIST
touch
$LIST
# suitable for ftp and http lists
# suitable for ftp and http lists
rm
-f
$LIST
.
failed
rm
-f
$LIST
.
ok
(
$CURL
-s
-l
$URL
/
||
touch
$LIST
.failed
)
|
tee
$LIST
.tmp | html_filter
>
$LIST
(
$CURL
-s
-l
$URL
/
&&
touch
$LIST
.ok
)
|
tee
$LIST
.tmp | html_filter
>
$LIST
if
[
-e
$LIST
.failed
]
;
then
if
[
!
-e
$LIST
.ok
]
;
then
#echo -e -n "\r"
#echo -e -n "\r"
warning
"Could't download list for
$SYS
from
$URL
"
warning
"Could't download list for
$SYS
from
$URL
"
#rm -f "$LIST.tmp"
#rm -f "$LIST.tmp"
return
return
fi
fi
rm
-f
$LIST
.ok
# check if there is letter subdirs (Fedora)
# check if there is letter subdirs (Fedora)
for
i
in
$(
cat
$LIST
.tmp |
sed
-e
"s|<a href=
\"
||g"
-e
"s|/
\"
>.*||g"
)
;
do
for
i
in
$(
cat
$LIST
.tmp |
sed
-e
"s|<a href=
\"
||g"
-e
"s|/
\"
>.*||g"
)
;
do
rhas
"
$i
"
rpm
&&
break
rhas
"
$i
"
rpm
&&
break
...
...
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