Bug 5659 - No value for target field from Package_Dependency table
Summary: No value for target field from Package_Dependency table
Status: VERIFIED NOTABUG
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M2
Assignee: Alexandru Damian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-12-12 10:55 UTC by Andreea Brandusa Proca
Modified: 2014-01-21 13:52 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
database (2.16 MB, application/x-xz)
2013-12-12 10:55 UTC, Andreea Brandusa Proca
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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'...