-
-
Notifications
You must be signed in to change notification settings - Fork 403
Open
Description
Hey @neolynx ,
when using the internal gpg_provider, I get the following error when creating or updating a mirror:
unable to initialize GPG verifier: failure loading trustedkeys.gpg keyring: openpgp: invalid data: tag byte does not have MSB set
I am using aptly 1.6.2. Here is a short example using the API, when trying to mirror the vscodium repo:
def add_key():
resp = requests.get(
"https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg")
body = {
"GpgKeyArmor": resp.text,
"Keyring": "trustedkeys.gpg",
}
url = "http://localhost:8080/api/gpg/key"
resp = requests.post(url, json=body)
print(resp.status_code)
print(resp.text)
def create_mirror():
body = {
"Architectures": ["amd64"],
"Distribution": "vscodium",
"Filter": "codium (>= 1.102.35058)",
"FilterWithDeps": True,
"Name": "vscodium",
"ArchiveURL": "https://download.vscodium.com/debs",
}
url = "http://localhost:8080/api/mirrors"
resp = requests.post(url, json=body)
print(resp.status_code)
print(resp.text)
if __name__ == "__main__":
# add_key()
create_mirror()add_key() works, but create_mirror() responses with that error.
Metadata
Metadata
Assignees
Labels
No labels