[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: URL is OK in browser but returns 404 with uscan



> > Any idea how to help uscan reading that web page?
> 
> https://storage.googleapis.com/broad-alkesgroup-public?delimiter=/&prefix=BOLT-LMM/downloads/
> gets you a step further.

Digging a bit, there is actually an example for this in the uscan man
page (grep for AWS).

Find attached a patch for your package ☺.

*snip*
uscan info:  => Package is up to date from:
             => https://storage.googleapis.com/BOLT-LMM/downloads/BOLT-LMM_v2.3.5.tar.gz
uscan info:  => Forcing download as requested
uscan info: Downloading upstream package: BOLT-LMM_v2.3.5.tar.gz
*snip*

HTH,
Nik
From 8179eb9c8fc787d8d32d5fb5cf9ac9d604af3658 Mon Sep 17 00:00:00 2001
From: Dominik George <natureshadow@debian.org>
Date: Sat, 9 Oct 2021 22:07:39 +0200
Subject: [PATCH] Correctly scan S3 bucket in d/watch

---
 debian/changelog | 4 +++-
 debian/watch     | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 879f2a0..d2abc9c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,9 @@
 bolt-lmm (2.3.5+dfsg-2) UNRELEASED; urgency=medium
 
   * Team upload.
-  TODO: Try to fix watch file ... but failed
+
+  [ Dominik George ]
+  * Scan and mangle S3 bucket list in d/watch.
 
  -- Andreas Tille <tille@debian.org>  Sat, 09 Oct 2021 08:29:36 +0200
 
diff --git a/debian/watch b/debian/watch
index e1e1447..761a3a6 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=4
-opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g,repack,compression=xz" \
-  https://alkesgroup.broadinstitute.org/BOLT-LMM/downloads/ .*/BOLT-LMM_v@ANY_VERSION@@ARCHIVE_EXT@
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g,pagemangle=s%<Key>([^<]*)</Key>%<Key><a href="$1">$1</a></Key>%g,repack,compression=xz" \
+  https://storage.googleapis.com/broad-alkesgroup-public?prefix=BOLT-LMM/downloads/ (?:.*)BOLT-LMM_v@ANY_VERSION@@ARCHIVE_EXT@
-- 
2.33.0

Attachment: signature.asc
Description: PGP signature


Reply to: