public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/debmirror] rawhide: Update to 2.49
@ 2026-10-30 14:28 Simone Caronni
  0 siblings, 0 replies; only message in thread
From: Simone Caronni @ 2026-10-30 14:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/debmirror
Branch : rawhide
Commit : 0eb17c7b38470fdf763db62d724cd929e7e4581b
Author : Simone Caronni <negativo17@gmail.com>
Date   : 2026-10-30T15:26:52+01:00
Stats  : +51/-45 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/debmirror/c/0eb17c7b38470fdf763db62d724cd929e7e4581b?branch=rawhide

Log:
Update to 2.49

---
diff --git a/debmirror-no-root.patch b/debmirror-no-root.patch
deleted file mode 100644
index ad2edf0..0000000
--- a/debmirror-no-root.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -Naur work.old/debmirror work/debmirror
---- work.old/debmirror	2025-06-26 10:24:07.724556714 +0200
-+++ work/debmirror	2025-06-26 10:29:10.608763077 +0200
-@@ -600,6 +600,7 @@
- use Net::FTP;
- use LWP::UserAgent;
- use MIME::Base64;
-+use URI ();
- 
- our $version="1:2.29";
- 
-@@ -850,12 +851,12 @@
- local $|=1 if $debug;
- if ($passwd eq "anonymous@") {
-   if (downloads_via_http()) {
--    say("Mirroring to $mirrordir from $download_method://$host/$remoteroot/");
-+    say("Mirroring to $mirrordir from ", URI->new_abs($remoteroot, "$download_method://$host"));
-   } else {
--    say("Mirroring to $mirrordir from $download_method://$user\@$host/$remoteroot/");
-+    say("Mirroring to $mirrordir from ", URI->new_abs($remoteroot, "$download_method://$user\@$host"));
-   }
- } else {
--  say("Mirroring to $mirrordir from $download_method://$user:XXX\@$host/$remoteroot/");
-+  say("Mirroring to $mirrordir from ", URI->new_abs($remoteroot, "$download_method://$user:XXX\@$host"));
- }
- say("Arches: ".join(",", @arches));
- say("Dists: ".join(",", @dists));
-@@ -1809,7 +1810,7 @@
- sub http_get {
-   local $| = 1;
-   my $file=shift;
--  my $url="$download_method://${host}/${remoteroot}/${file}";
-+  my $url=URI->new_abs("${remoteroot}/${file}", "$download_method://${host}");
-   my $ret=1;
- 
-   print "$url => " if $debug;

diff --git a/debmirror-remoteroot-url.patch b/debmirror-remoteroot-url.patch
new file mode 100644
index 0000000..ad2edf0
--- /dev/null
+++ b/debmirror-remoteroot-url.patch
@@ -0,0 +1,36 @@
+diff -Naur work.old/debmirror work/debmirror
+--- work.old/debmirror	2025-06-26 10:24:07.724556714 +0200
++++ work/debmirror	2025-06-26 10:29:10.608763077 +0200
+@@ -600,6 +600,7 @@
+ use Net::FTP;
+ use LWP::UserAgent;
+ use MIME::Base64;
++use URI ();
+ 
+ our $version="1:2.29";
+ 
+@@ -850,12 +851,12 @@
+ local $|=1 if $debug;
+ if ($passwd eq "anonymous@") {
+   if (downloads_via_http()) {
+-    say("Mirroring to $mirrordir from $download_method://$host/$remoteroot/");
++    say("Mirroring to $mirrordir from ", URI->new_abs($remoteroot, "$download_method://$host"));
+   } else {
+-    say("Mirroring to $mirrordir from $download_method://$user\@$host/$remoteroot/");
++    say("Mirroring to $mirrordir from ", URI->new_abs($remoteroot, "$download_method://$user\@$host"));
+   }
+ } else {
+-  say("Mirroring to $mirrordir from $download_method://$user:XXX\@$host/$remoteroot/");
++  say("Mirroring to $mirrordir from ", URI->new_abs($remoteroot, "$download_method://$user:XXX\@$host"));
+ }
+ say("Arches: ".join(",", @arches));
+ say("Dists: ".join(",", @dists));
+@@ -1809,7 +1810,7 @@
+ sub http_get {
+   local $| = 1;
+   my $file=shift;
+-  my $url="$download_method://${host}/${remoteroot}/${file}";
++  my $url=URI->new_abs("${remoteroot}/${file}", "$download_method://${host}");
+   my $ret=1;
+ 
+   print "$url => " if $debug;

diff --git a/debmirror.spec b/debmirror.spec
index 8ec1e7c..526c4b6 100644
--- a/debmirror.spec
+++ b/debmirror.spec
@@ -1,5 +1,5 @@
 Name:       debmirror
-Version:    2.48
+Version:    2.49
 Release:    %autorelease
 Summary:    Debian partial mirror script, with ftp and package pool support
 License:    GPL-2.0-or-later
@@ -7,8 +7,10 @@ URL:        https://tracker.debian.org/pkg/debmirror
 BuildArch:  noarch
 
 Source:     https://ftp.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.xz
-# Allow mirroring without being root (drop hardcoded root path assumptions).
-Patch0:     %{name}-no-root.patch
+# Build download URLs with URI->new_abs instead of string concatenation, so a
+# --root with a leading slash (e.g. "/" or "/ubuntu") does not produce "//"
+# in the URLs.
+Patch0:     %{name}-remoteroot-url.patch
 # Let command line --arch/--dist/--section override the config file values
 # instead of appending to them (e.g. --arch=arm64 must not keep the default
 # @arches="i386" from debmirror.conf, which then 404s on ports.ubuntu.com).
@@ -18,19 +20,21 @@ BuildRequires: perl
 BuildRequires: perl-generators
 BuildRequires: perl-podlators
 
-Requires:   bzip2
 Requires:   coreutils
-Requires:   ed
+Requires:   diffutils
 Requires:   findutils
-Requires:   gnupg
+Requires:   gnupg2
 Requires:   gzip
-Requires:   patch
 Requires:   rsync
+Requires:   xz
+# Only needed for --diff (pdiff) mode, debmirror falls back to --diff=none.
+Recommends: ed
+Recommends: patch
 
 %description
 This program downloads and maintains a partial local Debian mirror.
 It can mirror any combination of architectures, distributions and sections.
-Files are transferred by ftp, http, hftp or rsync, and package pools are fully
+Files are transferred by ftp, http, https or rsync, and package pools are fully
 supported. It also does locking and updates trace files.
 
 %prep
@@ -38,6 +42,8 @@ supported. It also does locking and updates trace files.
 
 %install
 install -Dp -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
+# Upstream leaves a stale version string, Debian replaces it at build time
+sed -i 's/^\(our \$version=\).*/\1"%{version}";/' %{buildroot}%{_bindir}/%{name}
 install -Dp -m 0644 examples/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
 
 # generate a man page

diff --git a/sources b/sources
index 33df9b2..acb02e3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (debmirror_2.48.tar.xz) = ad8172ec8f23997913308baf5ab2937465916c6307a3afca0008c9b10aed1942770d06d4d3dae8029adf306a1178351290d79b68dd2cee70e47177328794e230
+SHA512 (debmirror_2.49.tar.xz) = 08d9063c22b9ff1ea409d113c8389da974a800c1a37a79245caf9e7d2ebccb4046a02a390e2994930d26ad536dd074ecef3e3f118642f6a593532d4fd9e4c90d

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-30 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 14:28 [rpms/debmirror] rawhide: Update to 2.49 Simone Caronni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox