'return the list of path to search packages for depending on client OS and architecture'

def get_packages_path(self):

    path = [os.path.join('packages', self.platform), os.path.join('packages', self.platform, 'all')]
    if self.arch:
        path = (path + [os.path.join(p, self.arch) for p in path])
    path.append(os.path.join('packages', 'all'))
    path = (path + [os.path.join(ROOT, p) for p in path])
    return set(path)
