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
064ec533
Commit
064ec533
authored
Apr 16, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inroduce get_name (for spec) and use it
parent
065e6d35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
rpmbugs
bin/rpmbugs
+1
-1
rpmurl
bin/rpmurl
+1
-1
spec
share/eterbuild/functions/spec
+5
-0
No files found.
bin/rpmbugs
View file @
064ec533
...
...
@@ -87,7 +87,7 @@ for i in $SPECLIST ; do
# it is rpm package
PKGNAME
=
$(
querypackage
$i
NAME
)
else
PKGNAME
=
$(
eval_spec
$i
| get_var
"Name"
)
PKGNAME
=
$(
get_name
$i
)
test
-z
${
PKGNAME
}
&&
fatal
"Cannot get package name"
fi
else
...
...
bin/rpmurl
View file @
064ec533
...
...
@@ -102,7 +102,7 @@ get_pagepkginfo()
PKGVERSION
=
$(
querypackage
${
i
}
VERSION
)
PKGNAME
=
$(
querypackage
${
i
}
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
)
else
PKGNAME
=
$(
eval_spec
${
i
}
| get_var
"Name"
)
PKGNAME
=
$(
get_name
${
i
}
)
fi
else
# installed package name
...
...
share/eterbuild/functions/spec
View file @
064ec533
...
...
@@ -73,6 +73,11 @@ inc_subrelease()
set_release
"
$1
"
"
$(
get_txtrelease
$1
)${
MAJOR
}
.
$((
$MINOR
+
1
))
"
}
get_name
()
{
eval_spec
$1
| get_var
"Name"
}
get_version
()
{
eval_spec
$1
| get_var
"Version"
...
...
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