xbps-create: remove trailing whitespace.
(cherry picked from commit d139420576328084255f0145c5cfea3ad2d1367a)
This commit is contained in:
parent
5868bafc85
commit
7f8c8b3dcd
@ -182,7 +182,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf)
|
|||||||
assert(xe);
|
assert(xe);
|
||||||
xe->file = strdup(fpath);
|
xe->file = strdup(fpath);
|
||||||
assert(xe->file);
|
assert(xe->file);
|
||||||
|
|
||||||
if ((strcmp(fpath, "./INSTALL") == 0) ||
|
if ((strcmp(fpath, "./INSTALL") == 0) ||
|
||||||
(strcmp(fpath, "./REMOVE") == 0)) {
|
(strcmp(fpath, "./REMOVE") == 0)) {
|
||||||
/* metadata file */
|
/* metadata file */
|
||||||
@ -202,7 +202,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf)
|
|||||||
memset(&buf, 0, sizeof(buf));
|
memset(&buf, 0, sizeof(buf));
|
||||||
if (realpath(fpath, buf) == NULL)
|
if (realpath(fpath, buf) == NULL)
|
||||||
die("failed to process symlink `%s':", filep);
|
die("failed to process symlink `%s':", filep);
|
||||||
|
|
||||||
filep = buf + strlen(destdir);
|
filep = buf + strlen(destdir);
|
||||||
xe->target = strdup(filep);
|
xe->target = strdup(filep);
|
||||||
assert(xe->target);
|
assert(xe->target);
|
||||||
@ -212,7 +212,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf)
|
|||||||
* Find out if it's a configuration file or not
|
* Find out if it's a configuration file or not
|
||||||
* and calculate sha256 hash.
|
* and calculate sha256 hash.
|
||||||
*/
|
*/
|
||||||
if (entry_is_conf_file(filep))
|
if (entry_is_conf_file(filep))
|
||||||
xe->type = strdup("conf_files");
|
xe->type = strdup("conf_files");
|
||||||
else
|
else
|
||||||
xe->type = strdup("files");
|
xe->type = strdup("files");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user