[obs-commits] [openSUSE/open-build-service] 0bed37: bs_publish: RPM: Make writing the project public k...
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 0bed37b2ee18b4c1002356bf6eebd3e9d9ba5ecf https://github.com/openSUSE/open-build-service/commit/0bed37b2ee18b4c1002356... Author: Michael Berlin <mberlin@quobyte.com> Date: 2015-05-10 (Sun, 10 May 2015) Changed paths: M src/backend/bs_publish Log Message: ----------- bs_publish: RPM: Make writing the project public key and referencing it in the .repo file consistent. This commit fixes the following bug/situation: - a global keyfile is defined (option "keyfile"), but no project-specific sign key exists - the RPM repository will be published with the public key from the global keyfile - the .repo does not reference this public key file with gpgkey= because the code only triggers if there is a project-specific sign key. Instead, for gpgkey= the "gpg_standard_key" config value will be written to the .repo file ("gpg_standard_key" usually points to a local file on the OBS host) In the end, adding the repository using the .repo file will most likely fail because gpgkey= now contains a path to a local file which doesn't exist on the machine where the repository should be added. The solution is to reference the project's public key file when it was generated. This commit also introduces two behavior changes: - "gpgcheck=1" won't be added to the .repo file if signing was not configured - when signing was configured, but "gpg_standard_key" was not configured, the .repo file did contain "gpgcheck=1", but not "gpgkey=". Now the publisher will fail. Commit: 37851d92dec4e1aa14663ffa6f737ef4483c27f5 https://github.com/openSUSE/open-build-service/commit/37851d92dec4e1aa14663f... Author: Michael Schroeder <mls@suse.de> Date: 2015-06-09 (Tue, 09 Jun 2015) Changed paths: M src/backend/bs_publish Log Message: ----------- Merge pull request #925 from michael-berlin/fix_publish_repo_file_no_project_key bs_publish: RPM: Make writing the project public key and referencing … Compare: https://github.com/openSUSE/open-build-service/compare/a16582e7789d...37851d...
participants (1)
-
Michael Schroeder