def make_pkg(self, build_os, arch, spec, srcdir): if re.search("^(debian|ubuntu)", self.n): return packager.make_deb(self, build_os, arch, spec, srcdir) elif re.search("^(suse|centos|redhat|fedora)", self.n): return packager.make_rpm(self, build_os, arch, spec, srcdir) else: raise Exception("BUG: unsupported platform?")