765e304c4b
```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 ```
19 lines
466 B
Diff
19 lines
466 B
Diff
--- a/src/updatedb.c 2015-11-15 17:52:09.470706519 -0500
|
|
+++ b/src/updatedb.c 2015-11-15 17:52:31.754706775 -0500
|
|
@@ -35,6 +35,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/time.h>
|
|
#include <unistd.h>
|
|
+#include <paths.h>
|
|
|
|
#include <mntent.h>
|
|
#include "error.h"
|
|
@@ -388,7 +389,7 @@
|
|
char *dir;
|
|
|
|
#ifndef PROC_MOUNTS_PATH
|
|
- dir = canonicalize_file_name (me->mnt_dir);
|
|
+ dir = realpath (me->mnt_dir, NULL);
|
|
if (dir == NULL)
|
|
dir = me->mnt_dir;
|
|
#else
|