diff options
author | merakor <cem@ckyln.com> | 2020-08-31 21:55:02 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-08-31 21:55:02 +0000 |
commit | 27f2ca4955327ec7dc387f3a92e1b3df17829d2d (patch) | |
tree | b0de03e740823ed4e644b300f7f4c8ba282a55af | |
parent | ee950c5419e195deaf1e1e0d5001536b1ec8e1c1 (diff) | |
download | cpt-27f2ca4955327ec7dc387f3a92e1b3df17829d2d.tar.gz |
docs: update
FossilOrigin-Name: 43926a694badb88d4d0b326626637b1616fcadab7928866bfcba6e6934241769
-rw-r--r-- | src/cpt-lib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpt-lib b/src/cpt-lib index 55b1b2b..a019dba 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -1582,6 +1582,10 @@ pkg_fetch() { fi } elif [ -f .rsync ]; then + # If an .rsync_root file exists, we check that the repository root + # exists. If it does, we change to that directory to do the fetch. + # This way, we allow for partial repositories while making sure that + # we can fetch the repository in a single operation. [ -f .rsync_root ] && { read -r rsync_root < .rsync_root [ -f "$rsync_root/.rsync" ] && cd "$rsync_root" |