This is useful so one can wait with a following osc prjresult until
everything done. Without this one can not know if a release job hasn't
started yet or is already finished.
* util/helper.py
- new decode_it function. Takes obj and checks if
it is not a str. The it tries to guess the encoding
based on the module chardet
* all other modules:
- switched from var.decode('utf-8') to decode_it(var) if
possible
* altered command do_checkout
new option -D | --deleted. Can only be used with PACKAGE and needs
-o to work
* what happens:
core function checkout_deleted_package fetches the file list of the deleted
package and saves it to given destdir. If destdir is not existent it
creates the destination directory. Otherwise the files will be written
in the existing directory.
- 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
* 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
* 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
Without this change, using "--alternative-project <prj>" in combination
with "--multibuild-package <flavor>" yields to unexpected results (from
a user's point of view). Note that this may break existing (artificial)
workflows (e.g., using --alternative-project to ignore the package
meta's debuginfo flag), but these workflows should be rare and there
are options to achieve the same.
Fixes: #376 ("osc build -M something does not work with
--alternative-project")