Re: Comment on this script. Possible error in communication with list arg between functions

2006-07-24 Thread Phoe6
Juho Schultz wrote: > I think return values should be used for communication between > functions. Maybe something like this could work for you (not tested). > > def checkForRpm(rpmname): > # > # Strings with 0 lenght are False > if output: > print output > else: > p

Re: Comment on this script. Possible error in communication with list arg between functions

2006-07-24 Thread Juho Schultz
Phoe6 wrote: > Hi all, > Part of my script is to check for pre-requisite rpms to be > installed. > If its installed, I just display the rpm version as in rpm database, > otherwise I output a message saying: > ' rpm is not installed' and collect the rpm name in a list > (notInstalled). > At

Comment on this script. Possible error in communication with list arg between functions

2006-07-24 Thread Phoe6
Hi all, Part of my script is to check for pre-requisite rpms to be installed. If its installed, I just display the rpm version as in rpm database, otherwise I output a message saying: ' rpm is not installed' and collect the rpm name in a list (notInstalled). At the end if the len(notInstal