[gnome-continuous] libqa: don't refer to the current/ symlink



commit 62deef94404fe25aedb2be3f9e7575df8e738e89
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Sep 20 13:47:19 2014 -0400

    libqa: don't refer to the current/ symlink
    
    ostree no longer creates a symlink pointing to the current deployment;
    use libostree to find out the current deployment instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737184

 src/js/libqa.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/libqa.js b/src/js/libqa.js
index fb7efe8..3f82fad 100644
--- a/src/js/libqa.js
+++ b/src/js/libqa.js
@@ -374,7 +374,8 @@ function pullDeploy(mntdir, srcrepo, osname, target, revision, originRepoUrl, ca
     let defaultFstab = 'LABEL=gnostree-root / ext4 defaults 1 1\n\
 LABEL=gnostree-boot /boot ext4 defaults 1 2\n\
 LABEL=gnostree-swap swap swap defaults 0 0\n';
-    let fstabPath = ostreeOsdir.resolve_relative_path('current/etc/fstab');
+    let [currentDir, currentEtcDir] = getDeployDirs(mntdir, osname);
+    let fstabPath = currentEtcDir.resolve_relative_path('fstab');
     fstabPath.replace_contents(defaultFstab, null, false, Gio.FileCreateFlags.REPLACE_DESTINATION, 
cancellable);
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]