FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 02-03-2010, 06:49 PM
Chris Lumens
 
Default Log commands as a string instead of as a list of strings.

> diff --git a/iutil.py b/iutil.py
> index 3fb4057..872915d 100644
> --- a/iutil.py
> +++ b/iutil.py
> @@ -105,7 +105,7 @@ def execWithRedirect(command, argv, stdin = None, stdout = None,
> elif stderr is None or not isinstance(stderr, file):
> stderr = sys.stderr.fileno()
>
> - program_log.info("Running... %s" % ([command] + argv,))
> + program_log.info("Running... %s" % (" ".join([command] + argv),))
>
> #prepare os pipes for feeding tee proceses
> pstdout, pstdin = os.pipe()
> @@ -201,7 +201,7 @@ def execWithCapture(command, argv, stdin = None, stderr = None, root='/'):
> elif stderr is None or not isinstance(stderr, file):
> stderr = sys.stderr.fileno()
>
> - program_log.info("Running... %s" % ([command] + argv,))
> + program_log.info("Running... %s" % (" ".join([command] + argv),))
>
> env = os.environ.copy()
> env.update({"LC_ALL": "C"})
> @@ -273,7 +273,7 @@ def execWithCallback(command, argv, stdin = None, stdout = None,
> elif stderr is None or not isinstance(stderr, file):
> stderr = sys.stderr.fileno()
>
> - program_log.info("Running... %s" % ([command] + argv,))
> + program_log.info("Running... %s" % (" ".join([command] + argv),))
>
> p = os.pipe()
> p_stderr = os.pipe()

Yes, please.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org