ALBS-334: Make the ability of Pungi to give module_defaults from remote sources
This commit is contained in:
parent
38ea822260
commit
1e18e8995d
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: pungi
|
Name: pungi
|
||||||
Version: 4.2.15
|
Version: 4.2.15
|
||||||
Release: 1%{?dist}.cloudlinux
|
Release: 2%{?dist}.cloudlinux
|
||||||
Summary: Distribution compose tool
|
Summary: Distribution compose tool
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
|
@ -44,6 +44,7 @@ def is_xz_file(first_two_bytes):
|
|||||||
initial_bytes=b'fd37',
|
initial_bytes=b'fd37',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class RepoInfo:
|
class RepoInfo:
|
||||||
# path to a directory with repo directories. E.g. '/var/repos' contains
|
# path to a directory with repo directories. E.g. '/var/repos' contains
|
||||||
@ -97,7 +98,7 @@ class PackagesGenerator:
|
|||||||
url=file_url,
|
url=file_url,
|
||||||
)
|
)
|
||||||
file_request.raise_for_status()
|
file_request.raise_for_status()
|
||||||
with tempfile.NamedTemporaryFile(delete=False) as file_stream:
|
with tempfile.NamedTemporaryFile(delete=True) as file_stream:
|
||||||
file_stream.write(file_request.content)
|
file_stream.write(file_request.content)
|
||||||
return file_stream.name
|
return file_stream.name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user