예제 #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())
예제 #2
0
파일: license.py 프로젝트: aszeszo/test
 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())