fetch.user and fetch.password ?

Christophe Prud'homme christophe.prudhomme at ujf-grenoble.fr
Mon Apr 30 05:02:10 PDT 2012


Hi,

it seems that fetch.user and fetch.password are not used in portfetch
but I actually need them
to retrieve a repository

here is the piece of code in the Portfile

fetch.type          svn
fetch.user          gmsh
fetch.password      gmsh
svn.url             https://geuz.org/svn/gmsh/trunk
svn.revision        11960
svn.method          export

am I doing something wrong or these fetch parameters are not used at all ?

I changed portfetch to use fetch.{user,password} in svnfetch and now
it works fine
here is the code where I changed svn.args basically

# Perform an svn fetch
proc portfetch::svnfetch {args} {
    global svn.args svn.method svn.revision svn.url fetch.password fetch.user

    if {[regexp {\s} ${svn.url}]} {
        return -code error [msgcat::mc "Subversion URL cannot contain
whitespace"]
    }

    if {[string length ${svn.revision}]} {
        append svn.url "@${svn.revision}"
    }
    set svn.args "${svn.method} ${svn.args} ${svn.url} --password
${fetch.password} --username ${fetch.user}"

    if {[catch {command_exec svn "" "2>&1"} result]} {
        return -code error [msgcat::mc "Subversion check out failed"]
    }

    if {[info exists patchfiles]} {
        return [portfetch::fetchfiles]
    }

    return 0
}


Best regards
C.
-- 
Christophe Prud'homme
Université de Grenoble      christophe.prudhomme at ujf-grenoble.fr
LJK - Room 55                  Tel: +33476635497
51, rue des Mathématiques      Fax: +33476631263
BP53 38041 Grenoble Cedex 9
      <http://ljk.imag.fr/membres/Christophe.Prudhomme/>


More information about the macports-dev mailing list