[gnome-ostree] build: Fix crash if components don't install something in usr/lib
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] build: Fix crash if components don't install something in usr/lib
- Date: Wed, 13 Feb 2013 15:46:24 +0000 (UTC)
commit e71274a8916b268ea7cd972f4885590b75dc9864
Author: Colin Walters <walters verbum org>
Date: Wed Feb 13 10:45:54 2013 -0500
build: Fix crash if components don't install something in usr/lib
src/ostbuild/js/tasks/task-build.js | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/ostbuild/js/tasks/task-build.js b/src/ostbuild/js/tasks/task-build.js
index 8b8706a..862037d 100644
--- a/src/ostbuild/js/tasks/task-build.js
+++ b/src/ostbuild/js/tasks/task-build.js
@@ -354,11 +354,13 @@ const TaskBuild = new Lang.Class({
// Move symbolic links for shared libraries to devel
let libdir = buildResultDir.resolve_relative_path('usr/lib');
- FileUtil.walkDir(libdir, { nameRegex: /\.so$/,
- fileType: Gio.FileType.SYMBOLIC_LINK },
- Lang.bind(this, function(filePath, cancellable) {
- this._installAndUnlink(buildResultDir, filePath, develPath, cancellable);
- }), cancellable);
+ if (libdir.query_exists(null)) {
+ FileUtil.walkDir(libdir, { nameRegex: /\.so$/,
+ fileType: Gio.FileType.SYMBOLIC_LINK },
+ Lang.bind(this, function(filePath, cancellable) {
+ this._installAndUnlink(buildResultDir, filePath, develPath, cancellable);
+ }), cancellable);
+ }
for (let i = 0; i < DEVEL_DIRS.length; i++) {
let path = DEVEL_DIRS[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]