Bug#515852: link() doesn't update relative symlinks

2011-05-02 Thread Adam Borowski
On Sun, May 01, 2011 at 11:15:15PM -0400, James Vega wrote: > On Wed, Apr 20, 2011 at 04:04:31PM +0200, Adam Borowski wrote: > > the problem is caused by the following part in /usr/bin/dget: > > > > if ($url =~ m!^(file|copy)://(/.+)!) { > > if ($1 eq "copy" or not link($2, $file)) { >

Bug#515852: link() doesn't update relative symlinks

2011-05-01 Thread James Vega
On Sun, May 01, 2011 at 11:15:15PM -0400, James Vega wrote: > On Wed, Apr 20, 2011 at 04:04:31PM +0200, Adam Borowski wrote: > > There are four bugs there: > > 1. (/.+) should be (.+) -- there's no reason relative urls shouldn't work > > Relative URLs don't make much sense in a sources.list file.

Bug#515852: link() doesn't update relative symlinks

2011-05-01 Thread James Vega
On Wed, Apr 20, 2011 at 04:04:31PM +0200, Adam Borowski wrote: > Not sure why this was reassigned from dget to dscverify, Neither am I, retagged accordingly. > but, the problem is > caused by the following part in /usr/bin/dget: > > if ($url =~ m!^(file|copy)://(/.+)!) { > if ($1 eq

Bug#515852: link() doesn't update relative symlinks

2011-04-20 Thread Adam Borowski
Not sure why this was reassigned from dget to dscverify, but, the problem is caused by the following part in /usr/bin/dget: if ($url =~ m!^(file|copy)://(/.+)!) { if ($1 eq "copy" or not link($2, $file)) { system "cp -a $2 $file"; return $? >> 8; }