Re: 0repo failing on redirect to Amazon S3
"Bastian Eicher" <[email protected]> Thu, 10 Sep 2015 00:03:17 +0200
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
> Most likely, it's doing a HEAD but only GET is authorised. That sounds like the most likely explanation, yes. > You can disable the check by using this in your 0repo-config.py: > > def check_uploaded_archive(archive, url): > pass Unfortunately that seems to do nothing. The normal archive check is still performed and the contents of check_uploaded_archive() is not executed regardless of what I put there. I have attached my 0repo-config.py for reference. ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Zero-install-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/zero-install-devel
0repo-config.py
(text/plain, 1.3 KB)
REPOSITORY_BASE_URL = "http://0install.de/feeds/"
GPG_SIGNING_KEY = "0x66B436AC2D4B2281257B9BB985A0F0DAB46EE668"
CONTRIBUTOR_GPG_KEYS = None
#CONTRIBUTOR_GPG_KEYS = { "DA9825AECAD089757CDABD8E07133F96CA74D8BA" }
# Some Python imports (needed for the code below) - you can leave these alone
import os
from repo import paths
import subprocess
from os.path import join
#### Feed hosting ####
def upload_public_dir(files, message):
pass
#### Archive hosting ####
ARCHIVES_BASE_URL = "http://0install.de/files/hosted/"
LOCAL_ARCHIVES_BACKUP_DIR = "archive-backups/"
def get_archive_rel_url(archive_basename, impl):
return archive_basename
def upload_archives(archives):
for dir_rel_url, files in paths.group_by_target_url_dir(archives):
archives_local_dir = "/srv/www/0install/files/hosted/"
subprocess.check_call(["cp"] + files + [join(archives_local_dir, dir_rel_url)])
#### Custom checks and rules ####
def check_new_impl(impl):
# Example: Must have a release date
#released = impl.metadata.get('released', None)
#if not released:
# return "Missing 'released' attribute"
return None
def check_uploaded_archive(archive, url):
pass
#### Repository Layout (advanced) ####
def get_feeds_rel_path(uri_rel_path):
return uri_rel_path
def get_public_rel_path(feeds_rel_path):
return feeds_rel_path
GPG_PUBLIC_KEY_DIRECTORY = "."