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/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 12-02-2008, 05:13 PM
 
Default Fix pylint on Solaris

# HG changeset patch
# User john.levon@sun.com
# Date 1228241583 28800
# Node ID 583d6aff027f0c0348f6c15919b3a2d36a40164c
# Parent bcd052e6ef9dd3a56f2cadee8198a622e3f2068d
Fix pylint on Solaris

Use a good enough awk.

Signed-off-by: John Levon <john.levon@sun.com>

diff --git a/tests/pylint-virtinst.sh b/tests/pylint-virtinst.sh
--- a/tests/pylint-virtinst.sh
+++ b/tests/pylint-virtinst.sh
@@ -82,6 +82,9 @@ addchecker "Design" # Things lik
# "Too man public methods"
addchecker "Similarities" # Finds duplicate code (enable this later?)

+AWK=awk
+[ `uname -s` = 'SunOS' ] && AWK=nawk
+
pylint --ignore=coverage.py, $FILES
--reports=n
--output-format=colorized
@@ -99,7 +102,7 @@ pylint --ignore=coverage.py, $FILES
-ve "$URLTEST_ACCESS"
-ve "$UNUSED_ARGS"
-ve "$PROT_MEM_BUGS" |
- awk '
+ $AWK '
# Strip out any "*** Module name" lines if we dont list any errors for them
BEGIN { found=0; cur_line="" }
{

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 12-03-2008, 02:50 PM
Cole Robinson
 
Default Fix pylint on Solaris

john.levon@sun.com wrote:
> # HG changeset patch
> # User john.levon@sun.com
> # Date 1228241583 28800
> # Node ID 583d6aff027f0c0348f6c15919b3a2d36a40164c
> # Parent bcd052e6ef9dd3a56f2cadee8198a622e3f2068d
> Fix pylint on Solaris
>
> Use a good enough awk.
>
> Signed-off-by: John Levon <john.levon@sun.com>
>

Applied:

http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=583d6aff027f

Thanks,
Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:32 AM.

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