summaryrefslogtreecommitdiff
path: root/createdirdeps
diff options
context:
space:
mode:
authorjingui.ren <jingui.ren@samsung.com>2018-03-22 16:18:06 +0800
committerjingui.ren <jingui.ren@samsung.com>2018-03-22 16:18:06 +0800
commitae16ecc5a4861676a53c932f332715f067934f73 (patch)
tree2f2df2e62b458972a409db8544926085b83af828 /createdirdeps
parent83050d1233afbd5417a586eefb39b6f8dd210bbe (diff)
downloadbuild-ae16ecc5a4861676a53c932f332715f067934f73.tar.gz
build-ae16ecc5a4861676a53c932f332715f067934f73.tar.bz2
build-ae16ecc5a4861676a53c932f332715f067934f73.zip
Fix bugs when username including backslash
Change-Id: Ib489d11174f67acf04c6c622fc41c2243e596198
Diffstat (limited to 'createdirdeps')
-rwxr-xr-xcreatedirdeps2
1 files changed, 1 insertions, 1 deletions
diff --git a/createdirdeps b/createdirdeps
index 49bf09e..c38a4dc 100755
--- a/createdirdeps
+++ b/createdirdeps
@@ -59,7 +59,7 @@ if (defined($oldfile) && open(F, '<', $oldfile)) {
my %seen;
for my $dir (@ARGV) {
- my $cmd = "find $dir -follow -type f \\( -name \"*.rpm\" -o -name \"*.deb\" -o -name \"*.pkg.tar.gz\" -o -name \"*.pkg.tar.xz\" \\) -a ! -name \"*src.rpm\" -printf '\%T@/\%s/\%i \%p\\n'";
+ my $cmd = "find '$dir' -follow -type f \\( -name \"*.rpm\" -o -name \"*.deb\" -o -name \"*.pkg.tar.gz\" -o -name \"*.pkg.tar.xz\" \\) -a ! -name \"*src.rpm\" -printf '\%T@/\%s/\%i \%p\\n'";
open(F, '-|', $cmd) or next;
while (<F>) {
chomp;