Lines Matching defs:name

18 # information: Portions Copyright [yyyy] [name of copyright owner]
45 name = "pkglint.dupaction"
49 # installing to that path name. Each tuple represents a single
127 if atype and action.name != atype:
177 seed_dict(manifest, "name", self.ref_drivers,
198 seed_dict(manifest, "name", self.lint_drivers,
215 seed_dict(manifest, "name", self.lint_drivers,
251 self.dup_attr_check(["driver"], "name", self.ref_drivers,
290 self.dup_attr_check(["group"], "name", self.ref_gids,
318 lint_id = "{0}{1}".format(self.name, pkglint_id)
360 action_types.add(a.name)
387 type=action.name,
402 we know the type of action and name of an action attributes
407 'attr_name' The attribute name we're checking
428 if action.name not in action_names:
431 name = action.attrs[attr_name]
433 if name in processed_dic:
436 if name in ref_dic and len(ref_dic[name]) == 1:
441 for (pfmri, a) in ref_dic[name]:
443 if a.name in ["link", "hardlink"] and \
453 if attr_name == "path" and action.name == "file":
460 self.name, msgid, sub_id))
461 processed_dic[name] = True
472 engine.error(_("{attr_name} {name} is "
476 name=name,
478 msgid="{0}{1}.1".format(self.name, msgid))
481 engine.error(_("{attr_name} {name} "
486 name=name,
492 msgid="{0}{1}.2".format(self.name,
494 processed_dic[name] = True
509 lint_id = "{0}{1}".format(self.name, pkglint_id)
520 if a.name in ["link", "hardlink"] and \
524 types.add(a.name)
553 if action.name != "file":
582 if action.name not in ["link", "hardlink"]:
600 types_id = "{0}{1}.1".format(self.name, pkglint_id)
601 missing_id = "{0}{1}.2".format(self.name, pkglint_id)
602 diff_id = "{0}{1}.3".format(self.name, pkglint_id)
664 ac_names.add(action.name)
679 if len(set([ac.name for ac, pfmri in action_types])) > 1:
952 if parent_action.name == "dir":
968 parent_type=parent_action.name,
971 "{0}{1}".format(self.name, pkglint_id))
978 name = "pkglint.action"
1001 name = mf.fmri.get_name()
1005 dic[name] = ObsoleteFmri(True, mf.fmri)
1011 dic[name] = ObsoleteFmri(False, mf.fmri)
1043 _("underscore in attribute name {key} in "
1047 msgid="{0}{1}.1".format(self.name,
1050 if action.name != "set":
1053 name = action.attrs["name"]
1055 if "_" not in name:
1070 if name in obs_map:
1072 "name {name} should be {new} in {fmri}").format(
1073 name=name,
1074 new=obs_map[name],
1077 msgid="{0}{1}.3".format(self.name, pkglint_id))
1080 engine.warning(_("underscore in 'set' action name {name} in "
1081 "{fmri}").format(name=name,
1083 msgid="{0}{1}.2".format(self.name, pkglint_id))
1100 if action.name == "dir":
1115 self.name, pkglint_id))
1124 msgid="{0}{1}.2".format(self.name,
1133 msgid="{0}{1}.3".format(self.name,
1151 msgid="{0}{1}.4".format(self.name,
1163 if action.name != "legacy":
1166 name = manifest.fmri.get_name()
1168 for required in [ "category", "desc", "hotline", "name",
1176 msgid="{0}{1}.1".format(self.name,
1196 msgid="{0}{1}.3".format(self.name,
1211 legacy A package manifest with the same name as the
1230 msgid="{0}{1}.5".format(self.name, lint_id))
1240 self.name, lint_id))
1249 self.name, lint_id))
1257 if action.name is "unknown":
1260 msgid="{0}{1}".format(self.name, pkglint_id))
1283 if action.name != "depend":
1295 name = None
1305 name = declared_fmri.get_name()
1309 name = declared_fmri.get_name()
1322 if name and name in self.obsolete_pkgs:
1324 if not self.obsolete_pkgs[name].is_obsolete:
1327 found_fmri = self.obsolete_pkgs[name].fmri
1338 lint_id = "{0}{1}".format(self.name, pkglint_id)
1356 # dependencies will match those if their package name and
1407 self.name, pkglint_id))
1414 if action.name is "license" and "path" in action.attrs:
1420 msgid="{0}{1}".format(self.name, pkglint_id))
1442 msgid="{0}{1}".format(self.name, pkglint_id),
1463 msgid="{0}{1}".format(self.name, pkglint_id))
1470 if action.name is not "user":
1479 msgid="{0}{1}.4".format(self.name, pkglint_id))
1484 _("Username {name} in {pkg} > 32 chars").format(
1485 name=username,
1487 msgid="{0}{1}.1".format(self.name, pkglint_id))
1491 _("Username {name} in {pkg} does not have an "
1494 name=username,
1496 msgid="{0}{1}.2".format(self.name, pkglint_id))
1501 _("Username {name} in {pkg} is discouraged - see "
1503 name=username,
1505 msgid="{0}{1}.3".format(self.name, pkglint_id))
1513 if action.name != "depend":
1526 msgid="{0}{1}".format(self.name, pkglint_id))
1541 "attribute name {key} "
1545 msgid="{0}{1}".format(self.name,
1561 if not "name" in action.attrs or \
1562 not action.attrs["name"].startswith(start_pattern):
1565 if not action.attrs["name"] in supported_actuators:
1567 _("invalid package actuator name {attr} in {fmri}\n"
1569 attr=action.attrs["name"],
1572 ), msgid="{0}{1}".format(self.name, pkglint_id))
1574 if action.attrs["name"] == \
1585 ), msgid="{0}{1}".format(self.name,
1588 if action.attrs["name"] == \
1599 ), msgid="{0}{1}".format(self.name,
1620 if action.name != "file":
1628 lint_id = "{}{}".format(self.name, pkglint_id)