commit | f6144e9e2aba399246f1dba8544844f518968c07 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Fri Oct 18 17:13:49 2019 +0800 |
committer | Lei YU <mine260309@gmail.com> | Mon Nov 04 05:49:06 2019 +0000 |
tree | 2988d1c026babbba57c8191ce81f253be5b74c69 | |
parent | 5a7363b4cfdf995a6bebb80b6fe1cd3514c593a6 [diff] |
version manager: Check all software objects For uploaded tarball, the version manager will check if there is an existing version, and log "Software Object with the same version already exists" error. However it only checks the versions that it creates, but not for existing versions on D-Bus. This commit adds additional check, by getting all software objects and check if the uploaded version exists or not. Tested: On a BMC running a version, upload the same BMC tarball. Before this change, it creates a version object at the same D-Bus path; With this commit, it logs "Software Object with the same version already exists", and REST API returns 400 Bad Request, with "description": "Version already exists or failed to be extracted" Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I0532ea99eb330060f61c9bbfea4bf2bd746432a7
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.