Bug 7013 - Toaster project mode: default release is not properly set in database
Summary: Toaster project mode: default release is not properly set in database
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8
Assignee: Alexandru Damian
QA Contact: Ionut Chisanovici
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-12-02 16:33 UTC by Ionut Chisanovici
Modified: 2015-02-11 14:58 UTC (History)
5 users (show)

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


Attachments

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