28 Apr
2019
28 Apr
'19
13:33
On Sun, Apr 28, 2019 at 1:14 AM Andrei Borzenkov
28.04.2019 4:23, Neal Gompa пишет:
Hey,
I noticed that this suddenly stopped working:
ngompa@opensuse-tumbleweed-x86_64:~> rpm -E ".suse.tw%(. /etc/os-release; echo $VERSION_ID)" .suse.tw
Why doesn't the date part work anymore? It used to work a few months ago...
It never worked (in any Bourne-compatible shell). $VERSION_ID is expanded by shell before rpm can see it.
So that was the trick! It should be something like this? $ rpm -E '%(sh -c "./etc/os-release; echo \$VERSION_ID")' 20190423 Thanks! -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org