build_rpm: print out nevra rather than just name
It's more precise and makes it possible to find out if e.g. pkg upgrades made it to the tree. Closes: #859 Approved by: cgwalters
This commit is contained in:
parent
14431f7f09
commit
970a20974b
@ -407,7 +407,7 @@ BuildArch: $arch
|
||||
|
||||
# by default, we create a /usr/bin/$name script which just outputs $name
|
||||
%build
|
||||
echo -e "#!/bin/sh\necho $name" > $name
|
||||
echo -e "#!/bin/sh\necho $name-$version-$release.$arch" > $name
|
||||
chmod a+x $name
|
||||
$build
|
||||
|
||||
|
@ -66,7 +66,7 @@ vm_assert_layered_pkg foo-1.0 present
|
||||
echo "ok pkg foo added"
|
||||
|
||||
output=$(vm_cmd /usr/bin/foo)
|
||||
if [[ $output != foo ]]; then
|
||||
if [[ $output != foo-1.0-1.x86_64 ]]; then
|
||||
assert_not_reached "foo printed wrong output"
|
||||
fi
|
||||
echo "ok correct output"
|
||||
|
Loading…
Reference in New Issue
Block a user