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
1
Merge Requests
1
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
6adc9c24
Commit
6adc9c24
authored
Feb 08, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
functions/rpm: improve error messages in build_rpms_name
parent
b4db9cba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
rpm
share/eterbuild/functions/rpm
+2
-1
No files found.
share/eterbuild/functions/rpm
View file @
6adc9c24
...
...
@@ -10,7 +10,7 @@ load_mod build
build_buildroot
()
{
local
TWOPARAM
=
"--quiet"
test
-z
"
$BASENAME
"
&&
fatal
"Use build_buildroot with BASENAME defined"
test
-z
"
$BASENAME
"
&&
fatal
"Use build_buildroot
()
with BASENAME defined"
[
-n
"
$RPMTOPDIR
"
]
&&
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
BUILDROOT
=
`
rpm
"
$TWOPARAM
"
--eval
%buildroot | subst_namever
`
test
-z
"
$BUILDROOT
"
&&
fatal
"Fix rpm's buildroot"
...
...
@@ -39,6 +39,7 @@ build_rpms_name()
# Optimization
eval_spec
$NAMESPEC
$@
|
grep
":"
>
$tmprpm
BASENAME
=
$(
cat
$tmprpm
| get_var
"Name"
)
test
-n
"
$BASENAME
"
||
fatal
"Can't get Name from spec (check spec syntax)"
RELEASE
=
$(
cat
$tmprpm
| get_var
"Release"
)
VERSION
=
$(
cat
$tmprpm
| get_var
"Version"
)
TARBALLNAME
=
$(
cat
$tmprpm
| get_var
"Source.*"
)
...
...
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