'Calculate the checksum of the file specified in pkg_path and
compare it with the checksum in the checksum file
Return True if both match else return False.
:param pkg_path: The full path to the package file for which the
checksum is being compared
:param repo_url: The URL to fetch the checksum from'

def compare_checksum(self, pkg_path, repo_url):

    checksum_dict = self._get_checksum_dict()
    package_name = os.path.basename(pkg_path)
    if ((not checksum_dict) or (package_name not in checksum_dict)):
        return False
    repository_checksum = checksum_dict[package_name]
    local_checksum = self.compute_checksum(pkg_path)
    return (local_checksum == repository_checksum)
