srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
for p in ${template%/template}/patches/*; do
sed -i '
\,^[+-][+-][+-] /dev/null,b
/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
s,^[*][*][*] ,&a/,
/^--- /{
s,\(^--- \)\(./\)*,\1a/,
s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1,
s/[.][Oo][Rr][Ii][Gg]$//
s/[.]patched[.]\([^.]\)/.\1/
h
}
/^+++ -/{
g
s/^--- a/+++ b/
b
}
s,\(^+++ \)\(./\)*,\1b/,
' "$p"
done
sed -i '/^patch_args=/d' $template
done
```
2021-06-19 05:03:21 +02:00
|
|
|
--- a/glances/main.py
|
|
|
|
+++ b/glances/main.py
|
2021-05-31 12:49:33 +02:00
|
|
|
@@ -109,6 +109,7 @@
|
|
|
|
"""Manage the command line arguments."""
|
|
|
|
# Read the command line arguments
|
|
|
|
self.args = self.parse_args()
|
|
|
|
+ self.args.disable_check_update = False
|
|
|
|
|
|
|
|
def init_args(self):
|
|
|
|
"""Init all the command line arguments."""
|
|
|
|
@@ -256,8 +257,6 @@
|
|
|
|
parser.add_argument('--theme-white', action='store_true', default=False,
|
|
|
|
dest='theme_white', help='optimize display colors for white background')
|
|
|
|
# Globals options
|
|
|
|
- parser.add_argument('--disable-check-update', action='store_true', default=False,
|
|
|
|
- dest='disable_check_update', help='disable online Glances version ckeck')
|
|
|
|
parser.add_argument('--strftime', dest='strftime_format', default='',
|
|
|
|
help='strftime format string for displaying current date in standalone mode')
|