[Bug 350020] packages get published although publish flag is turned off