Fix the code according to https://github.com/openSUSE-Team/obs_factory/pull/24
Merge pull request #240 from aplanas/master

Fix the code according to https://github.com/openSUSE-Team/obs_factory/p...