View | Details | Raw Unified | Return to bug 343671
Collapse All | Expand All

(-)src/zypper-callbacks.cc (-4 / +14 lines)
Lines 22-32 Link Here
22
  }
22
  }
23
23
24
  if ( percent == 100 )
24
  if ( percent == 100 )
25
    out << CLEARLN << cursor.done() << " " << s;
25
  {
26
    if ( gSettings.verbosity >= VERBOSITY_NORMAL )
27
      out << CLEARLN << cursor.done() ;
28
    out << " " << s;
29
  }
26
  else
30
  else
27
    out << CLEARLN << cursor++ << " " << s;
31
  {
32
    if ( gSettings.verbosity >= VERBOSITY_NORMAL )
33
      out << CLEARLN << cursor++ ;
34
    out << " " << s;
35
  }
28
  // dont display percents if invalid
36
  // dont display percents if invalid
29
  if (percent >= 0 && percent <= 100)
37
  if (percent >= 0 && percent <= 100 && gSettings.verbosity >= VERBOSITY_NORMAL)
30
    out << " [" << percent << "%]";
38
    out << " [" << percent << "%]";
31
  out << flush;
39
  out << flush;
32
}
40
}
Lines 129-135 Link Here
129
bool read_bool_answer(const string & question, bool default_answer)
137
bool read_bool_answer(const string & question, bool default_answer)
130
{
138
{
131
  if (!gSettings.machine_readable)
139
  if (!gSettings.machine_readable)
132
    cout << CLEARLN << question
140
    if ( gSettings.verbosity >= VERBOSITY_NORMAL )
141
      cout << CLEARLN ;
142
    cout  << question
133
    << " [" << _("yes") << "/" << _("no") << "]: "
143
    << " [" << _("yes") << "/" << _("no") << "]: "
134
    << flush;
144
    << flush;
135
145

Return to bug 343671