Skip to content

Commit

Permalink
Sync GPG properties on each build in CLM (bsc#1213689) (#22537)
Browse files Browse the repository at this point in the history
(cherry picked from commit e1ab8bb)
  • Loading branch information
cbbayburt committed Oct 2, 2023
1 parent d2eb86d commit db28e85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,13 @@ private static void stripModuleMetadata(Channel channel) {
}
}

private static void syncGpgKeyInfo(Channel source, Channel target) {
target.setGPGCheck(source.isGPGCheck());
target.setGPGKeyFp(source.getGPGKeyFp());
target.setGPGKeyId(source.getGPGKeyId());
target.setGPGKeyUrl(source.getGPGKeyUrl());
}

/**
* Clone {@link Channel}s to given {@link ContentEnvironment}
*
Expand Down Expand Up @@ -851,6 +858,9 @@ private static SoftwareEnvironmentTarget fixTargetProperties(SoftwareEnvironment
tgt.cloneModulesFrom(newSource);
}

// Sync GPG key info to target in case it's updated since last build
syncGpgKeyInfo(newSource, tgt);

return swTgt;
}

Expand Down
1 change: 1 addition & 0 deletions java/spacewalk-java.changes.cbbayburt.bsc1213689
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Sync GPG properties on each build in CLM (bsc#1213689)

0 comments on commit db28e85

Please sign in to comment.