dd9d4a1979
```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 ```
20 lines
526 B
Diff
20 lines
526 B
Diff
--- a/krusader/DiskUsage/filelightParts/fileTree.h
|
|
+++ b/krusader/DiskUsage/filelightParts/fileTree.h
|
|
@@ -26,6 +26,7 @@
|
|
#include <time.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
+#include <sys/stat.h>
|
|
|
|
// TODO these are pointlessly general purpose now, make them incredibly specific
|
|
|
|
--- a/krusader/FileSystem/krpermhandler.h
|
|
+++ b/krusader/FileSystem/krpermhandler.h
|
|
@@ -42,6 +42,7 @@
|
|
#include <time.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
+#include <sys/stat.h>
|
|
|
|
#define NO_PERM 0
|
|
#define UNKNOWN_PERM 1
|