[yast-commit] [yast/yast-packager] 403974: Added tests, DRY the code