xbps-create: remove trailing whitespace.

(cherry picked from commit d139420576328084255f0145c5cfea3ad2d1367a)
This commit is contained in:
Juan RP 2012-09-05 09:59:45 +02:00
parent 5868bafc85
commit 7f8c8b3dcd

View File

@ -182,7 +182,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf)
assert(xe);
xe->file = strdup(fpath);
assert(xe->file);
if ((strcmp(fpath, "./INSTALL") == 0) ||
(strcmp(fpath, "./REMOVE") == 0)) {
/* 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));
if (realpath(fpath, buf) == NULL)
die("failed to process symlink `%s':", filep);
filep = buf + strlen(destdir);
xe->target = strdup(filep);
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
* and calculate sha256 hash.
*/
if (entry_is_conf_file(filep))
if (entry_is_conf_file(filep))
xe->type = strdup("conf_files");
else
xe->type = strdup("files");