35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From 35f49bde1c72ae4aed7116171df3f88d5696debf Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Wed, 21 May 2014 12:41:58 +0100
|
|
Subject: [PATCH] rpm: Use tab instead of space so we don't get confused by
|
|
filenames containing spaces (RHBZ#1099862).
|
|
|
|
Thanks: Lee Yarwood
|
|
---
|
|
src/rpm.ml | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/rpm.ml b/src/rpm.ml
|
|
index b08c60c..adb5c89 100644
|
|
--- a/src/rpm.ml
|
|
+++ b/src/rpm.ml
|
|
@@ -212,13 +212,13 @@ let rpm_get_all_requires pkgs =
|
|
|
|
let rpm_get_all_files pkgs =
|
|
let cmd = sprintf "\
|
|
- %s -q --qf '[%%{FILENAMES} %%{FILEFLAGS:fflags}\\n]' %s |
|
|
+ %s -q --qf '[%%{FILENAMES}\\t%%{FILEFLAGS:fflags}\\n]' %s |
|
|
grep '^/' |
|
|
sort -u"
|
|
Config.rpm
|
|
(quoted_list (List.map rpm_package_to_string (PackageSet.elements pkgs))) in
|
|
let lines = run_command_get_lines cmd in
|
|
- let lines = List.map (string_split " ") lines in
|
|
+ let lines = List.map (string_split "\t") lines in
|
|
List.map (
|
|
function
|
|
| [ path; flags ] ->
|
|
--
|
|
1.9.0
|
|
|