tools: symlink seq to the host staging dir (gseq on mac os x)
[openwrt.git] / package / opkg / patches / 012-strip-trailing-conffiles-whitespace.patch
1 --- a/libopkg/opkg_install.c
2 +++ b/libopkg/opkg_install.c
3 @@ -274,6 +274,7 @@ unpack_pkg_control_files(pkg_t *pkg)
4 while (1) {
5 char *cf_name;
6 char *cf_name_in_dest;
7 + int i;
8
9 cf_name = file_read_line_alloc(conffiles_file);
10 if (cf_name == NULL) {
11 @@ -282,6 +283,12 @@ unpack_pkg_control_files(pkg_t *pkg)
12 if (cf_name[0] == '\0') {
13 continue;
14 }
15 + for (i = strlen(cf_name) - 1;
16 + (i >= 0) && (cf_name[i] == ' ' || cf_name[i] == '\t');
17 + i--
18 + ) {
19 + cf_name[i] = '\0';
20 + }
21
22 /* Prepend dest->root_dir to conffile name.
23 Take pains to avoid multiple slashes. */
This page took 0.039988 seconds and 5 git commands to generate.