49cb564d14
* par is kept at -Np0 ```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 ```
13 lines
460 B
Diff
13 lines
460 B
Diff
https://bugs.archlinux.org/task/52683
|
|
|
|
--- a/pgadmin/frm/plugins.cpp
|
|
+++ b/pgadmin/frm/plugins.cpp
|
|
@@ -380,7 +380,7 @@ bool pluginUtilityFactory::CheckEnable(p
|
|
{
|
|
// If we need a specific server type, we can't enable unless
|
|
// we have a connection.
|
|
- if (!obj || !(obj->GetConnection()->GetStatus() == PGCONN_OK))
|
|
+ if (!obj || !obj->GetConnection() || !(obj->GetConnection()->GetStatus() == PGCONN_OK))
|
|
return false;
|
|
|
|
// Get the server type.
|