projects
/
git-tools-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
771dd4c
)
Parse not query the RNAME
author
Jakub Skoczen
<jakub@indexdata.com>
Thu, 17 Jul 2014 10:01:29 +0000
(12:01 +0200)
committer
Jakub Skoczen
<jakub@indexdata.com>
Thu, 17 Jul 2014 10:01:29 +0000
(12:01 +0200)
Querying with 'rpm' expands all macros, some may rely on redhat
features not present on debian
id-deb-build/id-pbuild.sh
patch
|
blob
|
history
diff --git
a/id-deb-build/id-pbuild.sh
b/id-deb-build/id-pbuild.sh
index
0f3441e
..
76559c0
100755
(executable)
--- a/
id-deb-build/id-pbuild.sh
+++ b/
id-deb-build/id-pbuild.sh
@@
-79,7
+79,7
@@
if test ! -x $PBUILDROOT; then
fi
if test "$CENTOS_DIST"; then
- RNAME=`rpm -q --specfile *.spec --queryformat "%{NAME};" | cut -d ";" -f1`
+ RNAME=`awk '/Name:/ {print $2}' *.spec`
echo "RNAME=$RNAME"
if test "$NAME" -a "$NAME" != "$RNAME"; then
echo "NAME in IDMETA ($NAME) does not match RPM spec NAME ($RNAME)"