mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
misc
This commit is contained in:
parent
04592a98d2
commit
c10c70c1e5
|
@ -362,7 +362,7 @@ class SvcHub(object):
|
||||||
src = ansi_re.sub("", src)
|
src = ansi_re.sub("", src)
|
||||||
elif c:
|
elif c:
|
||||||
if isinstance(c, int):
|
if isinstance(c, int):
|
||||||
msg = "\033[3{}m{}".format(c, msg)
|
msg = "\033[3{}m{}\033[0m".format(c, msg)
|
||||||
elif "\033" not in c:
|
elif "\033" not in c:
|
||||||
msg = "\033[{}m{}\033[0m".format(c, msg)
|
msg = "\033[{}m{}\033[0m".format(c, msg)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1137,9 +1137,9 @@ class Up2k(object):
|
||||||
m = "database is version {}, this copyparty only supports versions <= {}"
|
m = "database is version {}, this copyparty only supports versions <= {}"
|
||||||
raise Exception(m.format(ver, DB_VER))
|
raise Exception(m.format(ver, DB_VER))
|
||||||
|
|
||||||
msg = "creating new DB (old is bad); backup: {}"
|
msg = "creating new DB (old is bad); backup: "
|
||||||
if ver:
|
if ver:
|
||||||
msg = "creating new DB (too old to upgrade); backup: {}"
|
msg = "creating new DB (too old to upgrade); backup: "
|
||||||
|
|
||||||
cur = self._backup_db(db_path, cur, ver, msg)
|
cur = self._backup_db(db_path, cur, ver, msg)
|
||||||
db = cur.connection
|
db = cur.connection
|
||||||
|
|
|
@ -266,7 +266,7 @@ rm have
|
||||||
find | grep -E '\.py$' |
|
find | grep -E '\.py$' |
|
||||||
grep -vE '__version__' |
|
grep -vE '__version__' |
|
||||||
tr '\n' '\0' |
|
tr '\n' '\0' |
|
||||||
xargs -0 $pybin ../scripts/uncomment.py
|
xargs -0 "$pybin" ../scripts/uncomment.py
|
||||||
|
|
||||||
f=dep-j2/jinja2/constants.py
|
f=dep-j2/jinja2/constants.py
|
||||||
awk '/^LOREM_IPSUM_WORDS/{o=1;print "LOREM_IPSUM_WORDS = u\"a\"";next} !o; /"""/{o=0}' <$f >t
|
awk '/^LOREM_IPSUM_WORDS/{o=1;print "LOREM_IPSUM_WORDS = u\"a\"";next} !o; /"""/{o=0}' <$f >t
|
||||||
|
@ -386,7 +386,7 @@ suf=
|
||||||
suf=-gz
|
suf=-gz
|
||||||
}
|
}
|
||||||
|
|
||||||
$pybin $py --sfx-make tar.bz2 $ver $ts
|
"$pybin" $py --sfx-make tar.bz2 $ver $ts
|
||||||
mv sfx.out $sfx_out$suf.py
|
mv sfx.out $sfx_out$suf.py
|
||||||
|
|
||||||
exts+=($suf.py)
|
exts+=($suf.py)
|
||||||
|
|
Loading…
Reference in a new issue