* Corrected a problem triggered by wordperfect's deb: rpm can't deal with

files that have spaces, unless they are quoted. Thus, quote all filenames.
   * Handles empty directories now when converting to rpm.
This commit is contained in:
joey
2000-01-21 00:37:55 +00:00
parent 96387221f0
commit ddc4040def
2 changed files with 15 additions and 1 deletions

View File

@@ -54,9 +54,15 @@ sub Convert { my ($self,$workdir,$nopatch,%fields)=@_;
$filelist.="%config $fn\n";
}
else { # normal file
$filelist.="$fn\n";
# Filename must be quoted so rpm can handle
# spaces.
$filelist.="\"$fn\"\n";
}
}
else {
# Add directories too.
$filelist.="%dir \"$fn\"\n";
}
}
$fields{FILELIST}=$filelist;