def post_rebase(self, destination):
        # Figure out the trim sub dir
        name = destination.split('/')[-1]
        trim_d = [k for k, v in self.packages.items() if v.name == name][0]
        # Execute trim
        if trim_d in ['', '.']:
            return
        return trim(trim_d)
dataset/ETHPy150Open ros-infrastructure/bloom/bloom/generators/release.py/ReleaseGenerator.post_rebase/original