severity 551878 minor
thanks

On Wednesday 21 October 2009, Thorsten Glaser wrote:
> Installing ↓ on a Univention Corporate Server 2.2 (etch-based) succeeds.
> -rw-r--r-- 1 root root 46038 Oct 21 14:17 debmirror_2.3.1_all.deb
>
> However, using it does not:
>
> Scalar found where operator expected at /usr/bin/debmirror line 1757,
> near "return 0 unless remote_get("dists/$dist" (Might be a runaway
> multi-line // string starting on line 1749) (Do you need to predeclare
> return?)
>
> I think it uses a Perl feature of a version it does not depend on.
> It would be very nice if debmirror could restrict itself to use
> features from Perl from oldstable, because mirrors themselves are
> usually much less updated than the systems using them, kind of like
> with VM hosts (dom0, etc).

That's quite likely. I'm continually testing new versions of debmirror with 
stable and intend to ensure compatibility with that, but IMHO it's too 
much to ask for compatibility with oldstable.
So you'll either just have to use the (old)stable version of debmirror, or 
fix the incompatibility yourself.

Looking at the failing line it looks as if something like this change in 
split_dist() might work for you:

-  my $dist_sdir = $1 // "";
+  my $dist_sdir = $1 ? $1 : "";

However, it is clear that it should have a versioned dependency.

Cheers,
FJP



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to