[KNS] Take into account the distribution type
Summary:
Otherwise we have an expression that doesn't do anything and possibly should
be removed altogether.
Reviewers: Frameworks, whiting, leinir
Reviewed By: leinir
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D4226