diff options
author | Colin Walters <walters@verbum.org> | 2014-03-27 07:36:50 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-03-27 07:36:50 -0400 |
commit | 11ecf9267eae13da21521ee318f10cabaffc8a2a (patch) | |
tree | 5757a794d0f495a3f5e7696d4ab9bc36548e6b3b /src/libostree/ostree-sysroot-upgrader.c | |
parent | 9389b7961ca305a2a3ab7c6c0821668d1f03306c (diff) | |
download | ostree-11ecf9267eae13da21521ee318f10cabaffc8a2a.tar.gz |
libostree/upgrader: Don't pull if there is no remote
In this case we're just reading the local repo.
Diffstat (limited to 'src/libostree/ostree-sysroot-upgrader.c')
-rw-r--r-- | src/libostree/ostree-sysroot-upgrader.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libostree/ostree-sysroot-upgrader.c b/src/libostree/ostree-sysroot-upgrader.c index 3d656416..b95c448d 100644 --- a/src/libostree/ostree-sysroot-upgrader.c +++ b/src/libostree/ostree-sysroot-upgrader.c @@ -447,10 +447,13 @@ ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self, error)) goto out; - if (!ostree_repo_pull (repo, self->origin_remote, refs_to_fetch, - flags, progress, - cancellable, error)) - goto out; + if (self->origin_remote) + { + if (!ostree_repo_pull (repo, self->origin_remote, refs_to_fetch, + flags, progress, + cancellable, error)) + goto out; + } if (!ostree_repo_resolve_rev (repo, origin_refspec, FALSE, &self->new_revision, error)) |