From 27f2ca4955327ec7dc387f3a92e1b3df17829d2d Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 31 Aug 2020 21:55:02 +0000 Subject: docs: update FossilOrigin-Name: 43926a694badb88d4d0b326626637b1616fcadab7928866bfcba6e6934241769 --- src/cpt-lib | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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" -- cgit v1.2.3