Skip to content

Commit

Permalink
fix: Signing scripts needs access to environment variables.
Browse files Browse the repository at this point in the history
fixes #5911
  • Loading branch information
rochacbruno committed Oct 14, 2024
1 parent dfa6dfb commit 0a05315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/5911.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pass envvars to Signing Scripts to access GNUPGHOME
3 changes: 2 additions & 1 deletion pulpcore/app/models/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import asyncio
import datetime
import json
import os
import tempfile
import shutil
import subprocess
Expand Down Expand Up @@ -783,7 +784,7 @@ def _env_variables(self, env_vars=None):
}
if env_vars:
env.update(env_vars)
return env
return {**os.environ, **env}

def sign(self, filename, env_vars=None):
"""
Expand Down

0 comments on commit 0a05315

Please sign in to comment.