OpenPKG CVS Repository
  http://www.openpkg.org/cvsweb/cvsweb.cgi
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-re                       Date:   29-Aug-2002 12:03:25
  Branch: HEAD                             Handle: 2002082911032500

  Modified files:
    openpkg-re              openpkg-dev

  Log:
    Fix smart root logic.

  Summary:
    Revision    Changes     Path
    1.38        +3  -3      openpkg-re/openpkg-dev
  ____________________________________________________________________________

  Index: openpkg-re/openpkg-dev
  ============================================================
  $ cvs diff -u -r1.37 -r1.38 openpkg-dev
  --- openpkg-re/openpkg-dev    29 Aug 2002 09:32:45 -0000      1.37
  +++ openpkg-re/openpkg-dev    29 Aug 2002 10:03:25 -0000      1.38
  @@ -249,12 +249,12 @@
       #   smart dealing with temporary root priviledges
       root () {
           if [ \$# -eq 0 ]; then
  -            ssh -t -x root@localhost cd \${PWD} \&\& \${SHELL}
  +            ssh -t -x root@\${HOSTNAME} cd \${PWD} \&\& \${SHELL}
           elif [ ".\$1" = .rpm ]; then
               shift
  -            ssh -t -x root@localhost cd \${PWD} \&\& HOME=\${OPENPKG_WORK} 
\${OPENPKG_INST}/bin/rpm "\$@"
  +            ssh -t -x root@\${HOSTNAME} cd \${PWD} \&\& HOME=\${OPENPKG_WORK} 
\${OPENPKG_INST}/bin/rpm "\$@"
           else
  -            ssh -x root@localhost cd \${PWD} \&\& "\$@"
  +            ssh -x root@\${HOSTNAME} cd \${PWD} \&\& "\$@"
           fi
       }
   
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to