def preinstall(self, pkgplan, orig): # Set attrs["path"] so filelist can handle this action; # the path must be relative to the root of the image. self.attrs["path"] = misc.relpath(os.path.join( pkgplan.image.get_license_dir(pkgplan.destination_fmri), "license." + quote(self.attrs["license"], "")), pkgplan.image.get_root())
def preinstall(self, pkgplan, orig): # Set attrs["path"] so filelist can handle this action; # the path must be relative to the root of the image. self.attrs["path"] = misc.relpath(os.path.join( pkgplan.image.get_license_dir(pkgplan.destination_fmri), "license." + urllib.quote(self.attrs["license"], "")), pkgplan.image.get_root())