propellor spin
propellor spin
Avoid outputting color setting sequences when not run on a terminal.

Currently TERM is checked for every message. Could be memoized, but it
would add complexity, and typical propellor output is not going to be more
than a few hundred messages, and likely this will be swamped by the actual
work.
propellor spin
enable tty over ssh
propellor spin
can't rely on TERM; use hIsTerminalDevice

This calls an ioctl, I don't think it's very expensive.
propellor spin
propellor spin
propellor spin
ssh won't allocate a tty; work around

stdin is not a terminal, drat ssh

I don't much like this workaround
propellor spin
Run remote propellor --spin with a controlling terminal.

Avoids need for hack to make ansi colors work, but also things like apt-get
and wget process bars will be displayed.
propellor spin
avoid renaming --boot to --sync

That broke updating existing systems, since --boot is what makes the remote
propellor update itself.

The hostname is no longer needed by --boot for new propellor's, but is
still passed for old ones.

Note that there will be a double run of propellor when upgrading via
--spin, because it now runs --boot followed by --spin on the remote host,
and the old --boot also satisfied all properties.
propellor spin
need to chain, not spin
propellor spin
propellor spin
propellor spin