]> git.michaelhowe.org Git - packages/o/openafs.git/commit
redhat: remove extra kernel version check
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 6 Apr 2018 02:56:50 +0000 (22:56 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 20 Apr 2018 14:05:09 +0000 (10:05 -0400)
commit17f76dfa6abc17a36d78b9e1dc0354cbccc98489
tree0b86627b936341a56e0b84470c54d8717571458c
parentb30f21b8ec494d921c6ac513bf1022d5937ba220
redhat: remove extra kernel version check

Commit a1c072ac562ccf74e5afb8449db1bcef86aef362 (redhat: fix rpmbuild command
line option defaults) added logic to set the default value of the kernvers
variable when not specified as an rpmbuild command line option.

This default value is not necessary, since 'kmodtool verrel' already returns
the current running kernel version by default.  The result of 'kmodtool verrel'
sets the kverrel variable, which holds the value of the kernel version we are
building.  The kernvers variable is only used as an argument to 'kmodtool
verrel' and may be empty by default to indicate the current version should be
returned.

Remove the unnecessary setting of the default value of kernvers.

Also update the information banner to show the value of kverrel, which is the
actual version we are building, instead of kernvers, which is empty be default.

Reviewed-on: https://gerrit.openafs.org/12995
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 9f0164f4254da39c3c31e0268da58ce7a6ccda1d)

Change-Id: I355e3772c6bda18a385b48be80fb7f952c2fca3b
Reviewed-on: https://gerrit.openafs.org/12998
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/packaging/RedHat/openafs.spec.in