Phanx / wow-addon-updater

Install and update World of Warcraft addons from the command line on Linux
zlib License
4 stars 1 forks source link

Quiet operation #21

Open p3lim opened 6 years ago

p3lim commented 6 years ago

While updating there are a lot of noise in the output from the script, such as this:

WeakAuras 2 will be updated from 2.5.12 to 8.0-beta8
        Installing folder: WeakAuras
mv: inter-device move failed: '/tmp/curseupdater/WeakAuras' to '../WeakAuras'; unable to remove target: Directory not empty
        Installing folder: WeakAurasModelPaths
mv: inter-device move failed: '/tmp/curseupdater/WeakAurasModelPaths' to '../WeakAurasModelPaths'; unable to remove target: Directory not empty
        Installing folder: WeakAurasOptions
mv: inter-device move failed: '/tmp/curseupdater/WeakAurasOptions' to '../WeakAurasOptions'; unable to remove target: Directory not empty
        Installing folder: WeakAurasTemplates
mv: inter-device move failed: '/tmp/curseupdater/WeakAurasTemplates' to '../WeakAurasTemplates'; unable to remove target: Directory not empty
Deleting temp subdir WeakAuras
Deleting temp subdir WeakAurasModelPaths
Deleting temp subdir WeakAurasOptions
Deleting temp subdir WeakAurasTemplates

or this:

WorldFlightMap will be updated from 7.3.0.6 to Life as a Reaper
[/tmp/curseupdater/response]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/curseupdater/response or
        /tmp/curseupdater/response.zip, and cannot find /tmp/curseupdater/response.ZIP, period.

A quiet flag (like -q) would be nice to suppress any message that's not erroneous in the process as a whole (something that would fail the actual update), while the noise in the first example is corrected shortly after and should be suppressed.

p3lim commented 6 years ago

My bad, was missing gvfs.

Phanx commented 6 years ago

Reopening this because I think a -q flag would still be useful to suppress messages like "addon x is already up to date" and the messages about actual folders installed. Maybe even reversing that, and suppressing those by default, with a -v flag to allow them.