1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-03 16:19:19 +02:00

15 Commits

Author SHA1 Message Date
Marcus Huewe
59ef033e22 Fix ZeroDivisionException in meter.PBTextMeter
If size is 0, using pb.Percentage will result in a
ZeroDivisionException. Note: the output in case of
size == 0 looks a bit "strange" - for a consistent
output we should probably subclass pb.Percentage.
2019-02-08 11:29:14 +01:00
lethliel
75731119b3 rebase with master 2019-02-08 10:44:06 +01:00
lethliel
62043bd385 move missing pb module logic to meter.py 2019-01-08 18:13:51 +01:00
lethliel
40ce84067e revised modules:
- simplified TextMeter/pb usage
- fixed header in meter.py
- delted unused vars in function calls
- get rid of most MGErrors
- do not check for file:// in grabber.py
2018-02-27 10:37:16 +01:00
lethliel
c629b9978a reworked based on talk with Marcus:
* renamed mirror.py to grabber.py
* moved OscFileGraber Class to grabber.py
* in OscMirrorGroup we now use a OscFileGrabber class
* moved progressbar handling in own module (meter.py)
* simplified MGError
2018-02-21 17:04:59 +01:00
lethliel
4fd7c5b55c reworked urlgrabber replacement.
* removed meter.py (not needed anymore. We now use
  progressbar2
* removed last urlgrabber fragments
* use progressbar2 as a replacement for UrlGrabber.ProgressBar
* use streamfile in combination with progressbar to download files
2018-02-14 15:17:21 +01:00
Michal Vyskocil
7f2031558c python3 compatibility: print function
The most visible change in python3 - removal of print statement and all
the crufty
   print >> sys.stderr, foo,

The from __future__ import print_function makes it available in python
2.6
2013-04-16 10:51:41 +02:00
Marcus Huewe
078400f6cc - meter.py: reduced status bar (this one is used if there's no Content-Length header) 2010-09-09 14:58:33 +02:00
Ludwig Nussel
cecd75db4d option to hide download meter when finished 2010-04-28 11:52:14 +02:00
Ludwig Nussel
32e99306b4 add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
Ludwig Nussel
fd3977dc59 make osc built in text meter display progress immediately 2010-02-24 14:09:49 +01:00
Pavol Rusnak
661d927d38 code cleanup 2009-10-20 14:30:15 +00:00
Dr. Peter Poeml
be4f2b031f Putting names at the top of files is is not recommended. Collective wisdom for
fostering open source contributions says that it can discourage contribution by
conveying a false sense of "code ownership". Marking territory is negatively
affecting collaboration.  See http://www.youtube.com/watch?v=ZSFDm3UYkeE
2009-03-02 14:03:06 +00:00
Dr. Peter Poeml
637dec8e83 fix the download progress meter to be small enough to work with terminals 80 characters wide [#266989] 2007-04-24 21:10:01 +00:00
Dr. Peter Poeml
20a13e7b3b - bump version (0.7)
- initial support for local builds (subcommand 'build')
2006-07-14 17:39:46 +00:00