Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

euscan: Progressbar on stderr

Signed-off-by: volpino <fox91@anche.no>
  • Loading branch information...
commit 2b09bfba8ace32b9e905bf001ec6bc7e6f82b149 1 parent fb77d20
@volpino authored
View
3  bin/euscan
@@ -36,6 +36,7 @@ from euscan import CONFIG, output
# Globals
isatty = os.environ.get('TERM') != 'dumb' and sys.stdout.isatty()
+isatty_stderr = os.environ.get('TERM') != 'dumb' and sys.stderr.isatty()
def exit_helper(status):
@@ -184,7 +185,7 @@ def parse_args():
CONFIG['nocolor'] = True
pp.output.nocolor()
elif o in ("-p", "--progress"):
- CONFIG['progress'] = isatty
+ CONFIG['progress'] = isatty_stderr
elif o in ("--mirror"):
CONFIG['mirror'] = True
elif o in ("-i", "--ignore-pre-release"):
View
1  euscanwww/djeuscan/processing/scan/scan_portage.py
@@ -13,6 +13,7 @@
from djeuscan.processing import FakeLogger
from djeuscan.models import Package, Version, VersionLog
+
class ScanPortage(object):
def __init__(self, logger=None, no_log=False, purge_packages=False,
purge_versions=False):
View
1  euscanwww/djeuscan/tests/__init__.py
@@ -3,7 +3,6 @@
from django.test import TestCase
from django.test.client import Client
from django.core.urlresolvers import reverse
-from django.contrib.auth.models import User
from djeuscan.tests.euscan_factory import UserFactory
View
2  pym/euscan/out.py
@@ -1,3 +1,4 @@
+import sys
from io import StringIO
from collections import defaultdict
import json
@@ -37,6 +38,7 @@ def display(self):
def progress_bar():
on_progress = None
progress_bar = TermProgressBar(title="euscan")
+ progress_bar.file = sys.stderr
progress_handler = ProgressHandler(progress_bar)
on_progress = progress_handler.on_progress
Please sign in to comment.
Something went wrong with that request. Please try again.