Bug 7013

Summary: Toaster project mode: default release is not properly set in database
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Ionut Chisanovici <ionutx.chisanovici>
Severity: normal    
Priority: Medium CC: alexandru.damian, belen.barros.pena, bluelightning, bogdanx.a.voiculescu, cristiana.voicu
Version: 1.8   
Target Milestone: 1.8   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ionut Chisanovici 2014-12-02 16:33:27 UTC
Hi,

After starting toaster in project mode and importing configurations from meta-yocto/conf/toasterconf.json file, the default release for a new project is: local (Local Yocto Project) instead of master(Yocto Project master) as it is in the toasterconf.json file.

From toasterconf.json:

Build configuration saved
 -- Do you want to import basic layer configuration from "/home/ionut/work/weekly/poky/meta-yocto/conf/toasterconf.json" ? (y/N):y

$ cat toasterconf.json | grep defaultrelease -A 12
    "defaultrelease": "master",

    "releases": [
        {
            "name": "master",
            "description": "Yocto Project master",
            "bitbake": "master",
            "branch": "master",
            "defaultlayers": [ "openembedded-core", "meta-yocto", "meta-yocto-bsp"],
	    "layersourcepriority": { "User Imported Layers": 99, "Local Poky" : 10, "OpenEmbedded" :  0 },
            "helptext": "Toaster will run your builds using the <a href=\"http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/\">Yocto Project master branch</a>, where active development takes place. This is not a stable branch, so your builds might not work as expected."
        }
$ pwd
/home/ionut/work/weekly/poky/meta-yocto/conf

From database:

sqlite> select release_id from orm_project;
release_id = 3
sqlite> select * from orm_release where id=3;
       description = Local Yocto Project
       branch_name = HEAD
          helptext = Toaster will run your builds with the version of the Yocto Project you have cloned or downloaded to your computer.
bitbake_version_id = 3
                id = 3
              name = local

Cheers,
Ionut C
Comment 1 Ionut Chisanovici 2014-12-05 08:24:05 UTC
Hi,

This is not a bug.
Prior creating the project, I changed the default release to Local.
Closed.

Cheers,
Ionut C
Comment 2 Ionut Chisanovici 2014-12-05 08:24:26 UTC
Closed.