--- /dev/null
+--- poldek-0.42.2/vfile/vfffmod.c.orig 2020-01-25 22:59:59.000000000 +0100
++++ poldek-0.42.2/vfile/vfffmod.c 2023-10-19 14:05:44.263325854 +0200
+@@ -269,10 +269,10 @@
+ char topath[PATH_MAX + 128], *topathp = vreq.redirected_to;
+ int foreign_proto = 0;
+
+- n_assert(cn->proto == VCN_PROTO_HTTP);
++ n_assert(cn->proto == VCN_PROTO_HTTP || cn->proto == VCN_PROTO_HTTPS);
+
+ if (*vreq.redirected_to == '/') {
+- snprintf(topath, sizeof(topath), "http://%s%s", req->host,
++ snprintf(topath, sizeof(topath), "http%s://%s%s", cn->proto == VCN_PROTO_HTTPS ? "s" : "" , req->host,
+ vreq.redirected_to);
+ topathp = topath;
+ } else if (strncmp(vreq.redirected_to, "http://", 7) != 0)
Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
Name: poldek
Version: 0.42.2
-Release: 17
+Release: 18
License: GPL v2
Group: Applications/System
#Source0: http://poldek.pld-linux.org/download/snapshots/%{name}-%{version}-cvs%{snap}.tar.bz2
Patch21: sorted-ls-upgradable.patch
Patch22: egrep-is-obsolete.patch
Patch23: minus.patch
+Patch24: %{name}-https-redirect.patch
URL: http://poldek.pld-linux.org/
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
%patch21 -p1
%patch22 -p1
%patch23 -p1
+%patch24 -p1
%{__rm} doc/poldek.info
%{__rm} m4/libtool.m4 m4/lt*.m4