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
806dcaa3
Commit
806dcaa3
authored
Dec 14, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: fix build src.rpm
parent
161a4e41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
rpmbph
bin/rpmbph
+9
-4
No files found.
bin/rpmbph
View file @
806dcaa3
...
...
@@ -102,6 +102,8 @@ fi
# set SPECDIR from LISTNAMES if empty (need for is_gear below)
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
# FIXME: detected only by first arg?
# if run for ALT inside gear repo, just create backported spec
if
[
"
$PKGVENDOR
"
=
"alt"
]
&&
is_gear
$SPECDIR
;
then
...
...
@@ -190,12 +192,15 @@ export IGNOREGEAR=1
# NOTE: we can do cd to some other dir...
for
i
in
$LISTBUILT
;
do
uni_rpminstall
$i
uni_rpminstall
"
$i
"
# Note! Use $i package only before rm it
SPECNAME
=
$RPMTOPDIR
/SPECS/
$(
spec_by_srpm
"
$i
"
)
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
(got from
$i
) is not found in
$RPMTOPDIR
/SPECS"
# remove primary src.rpm only if src.rpm was not primary
rhas
"
$LISTNAMES
"
"
$i
"
||
rm
-f
$i
rhas
"
$LISTNAMES
"
"
$i
"
||
rm
-f
"
$i
"
SPECNAME
=
$RPMTOPDIR
/SPECS/
$(
spec_by_srpm
$i
)
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
docmd
$ETERBUILDBIN
/rpmbps
-b
$BINARYREPO
$SPECNAME
docmd
$BUILDCOMMAND
-b
$BINARYREPO
$LISTRPMARGS
$SPECNAME
||
fatal
"Can't build"
...
...
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