Changeset 1026 for pykota/trunk/bin

Show
Ignore:
Timestamp:
06/13/03 20:54:17 (21 years ago)
Author:
jalet
Message:

Bug with remote jobs and LPRng fixed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r1004 r1026  
    2323# 
    2424# $Log$ 
     25# Revision 1.34  2003/06/13 18:54:17  jalet 
     26# Bug with remote jobs and LPRng fixed. 
     27# 
    2528# Revision 1.33  2003/05/28 13:51:38  jalet 
    2629# Better handling of errors 
     
    184187        else :     
    185188            # Try to detect LPRng 
    186             jseen = Jseen = Pseen = nseen = rseen = Kseen = None 
     189            jseen = Pseen = nseen = rseen = Kseen = None 
    187190            for arg in sys.argv : 
    188191                if arg.startswith("-j") : 
    189192                    jseen = arg[2:].strip() 
    190                 elif arg.startswith("-J") :     
    191                     Jseen = arg[2:].strip() 
    192                     if Jseen == "(STDIN)" : 
    193                         Jseen = None 
    194193                elif arg.startswith("-n") :      
    195194                    nseen = arg[2:].strip() 
     
    203202                Kseen = 1       # we assume the user wants at least one copy... 
    204203            if jseen and Pseen and nseen and rseen :         
    205                 return ("LPRNG", rseen, Pseen, nseen, jseen, Jseen, Kseen) 
     204                # job is always in stdin (None) 
     205                return ("LPRNG", rseen, Pseen, nseen, jseen, None, Kseen) 
    206206        return (None, None, None, None, None, None, None)   # Unknown printing system           
    207207