'Coverts a package tarball name into a package name and type.
:param tarball_name: The filename of the tarball
:return: (name, pkg_type) where name is the package name and pkg_type
is the package type.'

@staticmethod
def parse_tarball_name(tarball_name):

    match = re.search('^([^-]*)-(.*)\\.tar\\.bz2$', tarball_name)
    (pkg_type, name) = match.groups()
    return (name, pkg_type)
