Changeset 3504


Ignore:
Timestamp:
Jun 19, 2007, 4:26:58 AM (18 years ago)
Author:
bird
Message:

Some .exe fixes.

Location:
trunk/essentials/sys-apps/prefix-portage/pym/portage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-apps/prefix-portage/pym/portage/const.py

    r3502 r3504  
    7575   
    7676# bird: Added EXEEXT for appending ".exe" on OS/2 and windows.
    77 EXEEXT                  = "@EXEEXT"
     77EXEEXT                  = "@EXEEXT@"
    7878if EXEEXT == "@"+"EXEEXT"+"@":
    7979        EXEEXT              = ""
  • trunk/essentials/sys-apps/prefix-portage/pym/portage/dbapi/porttree.py

    r3488 r3504  
    656656                                continue
    657657                        except PortageException, e:
    658                                 writemsg("!!! Error: aux_get('%s', %s)\n" % (mycpv, aux_keys),
    659                                         mycpv, noiselevel=-1)
     658                                #writemsg("!!! Error: aux_get('%s', %s)\n" % (mycpv, aux_keys),
     659                                #       mycpv, noiselevel=-1) wtf?
     660                                writemsg("!!! Error: aux_get('%s', %s)\n" % (mycpv, aux_keys), mycpv)
    660661                                writemsg("!!! %s\n" % str(e), noiselevel=-1)
    661662                                del e
  • trunk/essentials/sys-apps/prefix-portage/pym/portage/process.py

    r3500 r3504  
    99
    1010from portage.util import dump_traceback
    11 from portage.const import BASH_BINARY, SANDBOX_BINARY
     11from portage.const import BASH_BINARY, SANDBOX_BINARY, EXEEXT
    1212from portage.exception import CommandNotFound
    1313
     
    171171                binary = path_lookup and find_binary(binary) or None
    172172                # bird: try with exe suffix appended
    173                 if not binary and sys.platform == "os2knix":
    174                         binary = mycommand[0]+".exe"
     173                if not binary and EXEEXT != "":
     174                        binary = mycommand[0]+EXEEXT
    175175                        if (not os.path.isabs(binary) or not os.path.isfile(binary)
    176176                                or not os.access(binary, os.X_OK)):
     
    367367                if os.access(filename, os.X_OK) and os.path.isfile(filename):
    368368                        return filename
     369                if EXEEXT != "":
     370                        if os.access(filename+EXEEXT, os.X_OK) and os.path.isfile(filename+EXEEXT):
     371                                return filename+EXEEXT
    369372        return None
Note: See TracChangeset for help on using the changeset viewer.