Beispiel #1
0
 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())
Beispiel #2
0
 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())