1 |
Dnia 2015-10-15, o godz. 12:50:10 |
2 |
Ulrich Müller <ulm@g.o> napisał(a): |
3 |
|
4 |
> +\FORALL{\t{x} in the \t{files} array} |
5 |
> + \IF{\t{\$x} is a directory} |
6 |
> + \FORALL{files \t{f} matching \t{\$x/*.diff} or \t{\$x/*.patch}, sorted in POSIX locale} |
7 |
> + \STATE call \t{patch -p1 -f -g0 -{}-no-backup-if-mismatch "\$\{options[@]\}" < "\$f"} |
8 |
> + \IF{child process returned with non-zero exit status} |
9 |
> + \STATE return immediately with an error |
10 |
> + \ENDIF |
11 |
> + \ENDFOR |
12 |
|
13 |
After updating the implementation in Portage, I noticed that we |
14 |
probably should somehow specify here that it is an error to specify |
15 |
directory that does not contain any *.patch/*.diff files. |
16 |
|
17 |
-- |
18 |
Best regards, |
19 |
Michał Górny |
20 |
<http://dev.gentoo.org/~mgorny/> |