[php-apt-parser-maint] [php-apt-parser-Bugs][304089] URL for .changes and .build files broken

php-apt-parser-bugs at alioth.debian.org php-apt-parser-bugs at alioth.debian.org
Sun Jun 24 17:52:46 UTC 2012


php-apt-parser-Bugs item #304089, was changed at 24.06.2012 19:52 by Daniel Leidert
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=412507&aid=304089&group_id=30953

Status: Open
Priority: 4
Submitted By: Daniel Leidert (dleidert-guest)
>Assigned to: Daniel Leidert (dleidert)
Summary: URL for .changes and .build files broken 
Resolution: None


Initial Comment:
Testing the des-branch shows, that the created URL for .changes or .build files is broken. E.g.

parse_and_list(
        Array("dists/sid/main/binary-i386/Packages.gz",
              "dists/sid/contrib/binary-i386/Packages.gz",
              "dists/sid/non-free/binary-i386/Packages.gz"),
        Array("dists/sid/main/source/Sources.gz",
              "dists/sid/contrib/source/Sources.gz",
              "dists/sid/non-free/source/Sources.gz"),
        "dists/sid/installed",
        "build_logs");


results in links:

http://my.domain.tld/package.changes

not

http://my.domain.tld/foo/dists/sid/installed/package.changes

(foo is the path to where the script was called)


(seems one of the Alioth upgrades deleted/broke our Bug-tracker, so here comes this report again)

----------------------------------------------------------------------

Comment By: Daniel Leidert (dleidert-guest)
Date: 01.03.2007 00:20

Message:
For the moment I removed that code and replaced it with:

print "| <a href=\"" .
htmlentities($base_url) .
htmlentities($dir) .
"/" .
htmlentities($chfile) .
"\">" . "." . $ext .
"</a>" . "\n";

Please check, if that breaks something.

----------------------------------------------------------------------

Comment By: Daniel Leidert (dleidert-guest)
Date: 28.02.2007 23:20

Message:
>From what I read, I guess that something is broken with the code:

if ( $chfile !== False )
{
    print "| <a href=\"" .
        htmlentities($base_url) .
        htmlentities(preg_replace("!.*" .
            preg_replace("!.*(/[^/]+/?)$!",
            "$1",
            $base_url) .
            "(.*)!", "$1",
            $changesdir) .
            "/" . $chfile) .
        "\">Changes</a>" . "\n";
    break;
}

The preg_replace calls might be the problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=412507&aid=304089&group_id=30953



More information about the php-apt-parser-maint mailing list