*Synopsis*: validate_pkg traceback when manifest contains an untargeted link
*Change Request ID*: 6963318
*Synopsis*: validate_pkg traceback when manifest contains an untargeted link
Product: solaris
Category: consolidation
Subcategory: os-net-tools
Type: Defect
Subtype:
Status: 1-Dispatched
Substatus:
Priority: 4-Low
Introduced In Release:
Introduced In Build:
Responsible Engineer:
Keywords:
=== *Description* ============================================================
Due to a copy-paste error, I accidentally added a link to one of my
package manifests that had no target:
link path=usr/X11/lib/mesa=../../lib/mesa
Amazingly, this got all the way through the package build and publication,
but when it got to validate_pkg instead of printing a user-friendly
"invalid link" message, it instead threw a traceback that required me to
dig through the python code to try to find the cause, then grep all my
manifests to try to find which was broken:
Traceback (most recent call last):
File "/opt/onbld/bin/validate_pkg", line 878, in <module>
main(sys.argv[1:])
File "/opt/onbld/bin/validate_pkg", line 836, in main
manifesttree.adddir(mdir, arch, modechecks, exceptions)
File "/opt/onbld/bin/validate_pkg", line 659, in adddir
self.addmanifest(mdir, mfile, arch, modechecks, exceptions)
File "/opt/onbld/bin/validate_pkg", line 642, in addmanifest
self[path] = ActionInfo(action)
File "/opt/onbld/bin/validate_pkg", line 307, in __init__
target = action.attrs["target"]
KeyError: 'target'
*** Error code 1
The following command caused the error:
validate_pkg -a i386 -M -m build-i386
dmake: Warning: Command failed for target `pmodes'
Traceback (most recent call last):
File "/opt/onbld/bin/validate_pkg", line 878, in <module>
main(sys.argv[1:])
File "/opt/onbld/bin/validate_pkg", line 836, in main
manifesttree.adddir(mdir, arch, modechecks, exceptions)
File "/opt/onbld/bin/validate_pkg", line 659, in adddir
self.addmanifest(mdir, mfile, arch, modechecks, exceptions)
File "/opt/onbld/bin/validate_pkg", line 642, in addmanifest
self[path] = ActionInfo(action)
File "/opt/onbld/bin/validate_pkg", line 307, in __init__
target = action.attrs["target"]
KeyError: 'target'
*** Error code 1
The following command caused the error:
validate_pkg -a i386 -v -e
/export/alanc/hg/xnv-ips/pkg/../exception_lists/packaging -e
build-i386/generated-exceptions \
-m build-i386 -p /export/alanc/hg/xnv-ips/proto/root_i386
*** (#1 of 1): 2010-06-23 02:48:16 GMT+00:00 <User 1-5Q-1267>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release:
Commit To Fix In Build:
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also:
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5:
Hook6:
Program Management:
Root Cause:
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2010-06-23 02:48:15 GMT+00:00
Submitted By: <User 1-5Q-1267>
Status Changed Date Updated Updated By
=== *Service Request* ========================================================
Impact: Limited
Functionality: Secondary
Severity: 4
Product Name: solaris
Product Release: solaris_nevada
Product Build:
Operating System: solaris
Hardware: generic
Submitted Date: 2010-06-23 02:48:16 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================
_______________________________________________
on-ips-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/on-ips-dev