Bug 5659

Summary: No value for target field from Package_Dependency table
Product: [Build System, Metadata & Runtime] Toaster Reporter: Andreea Brandusa Proca <andreea.b.proca>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED NOTABUG QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.damian, belen.barros.pena, cristiana.voicu
Version: unspecified   
Target Milestone: 1.6 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
database none

Description Andreea Brandusa Proca 2013-12-12 10:55:25 UTC
Created attachment 1666 [details]
database

Example:
{
    "pk": 360,.
    "model": "orm.package_dependency",.
    "fields": {
        "depends_on": 446,.
        "target": null,.
        "dep_type": 1,.
        "package": 444
    }

Tested on toaster/master:7e7b2a24952c904fe934565068b1f6583eacd450.
Comment 1 Alexandru Damian 2014-01-21 11:00:14 UTC
The "target" field needs to have a value only for dependencies type 6 and 7.
Comment 2 Andreea Brandusa Proca 2014-01-21 13:52:37 UTC
Verified. 
Only the entities having dep_type != 6 or dep_type !=7 have the field "target" = null.

andreea@andreea-Vostro-460:~/poky/build$ python -s ../bitbake/lib/toaster/manage.py  test orm.QualityTests.test_quality_Package_Dependency
Creating test database for alias 'default'...
.
----------------------------------------------------------------------
Ran 1 test in 7.061s

OK
Destroying test database for alias 'default'...