diff options
author | merakor <cem@ckyln.com> | 2021-07-03 08:39:19 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-07-03 08:39:19 +0000 |
commit | 01d203d3315cae1d9ee0aa11fe20510cb5b81897 (patch) | |
tree | 6121e23830df3bb5adb242cf4675021e82a00caf | |
parent | 6dfa1177978a7a83e1d2b935f8a043c8fb8fb653 (diff) | |
download | cpt-01d203d3315cae1d9ee0aa11fe20510cb5b81897.tar.gz |
pkg_vcs*: update log functions
FossilOrigin-Name: bba28d0462c886c00d45362fe9641aa87a37249800aa85f0b3e9d4c513ddc2e5
-rw-r--r-- | src/cpt-lib.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in index ebb1bc3..e7dfe4c 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1640,9 +1640,9 @@ pkg_vcs_clone_fossil() { pkg_vcs_pull_fossil() { # Pull function for Fossil. + log "$PWD" " " [ "$(fossil remote 2>/dev/null)" != off ] || { - log "$repo" " " - printf '%s\n' "No remote, skipping." + out "No remote, skipping." return 0 } @@ -1689,9 +1689,9 @@ pkg_vcs_pull_git() { pkg_vcs_pull_hg() { # Pull function for Mercurial. + log "$PWD" " " [ "$(hg showconfig paths 2>/dev/null)" ] || { - log "$repo" " " - printf '%s\n' "No remote, skipping." + out "No remote, skipping." return 0 } @@ -1706,6 +1706,7 @@ pkg_vcs_pull_hg() { pkg_vcs_pull_rsync() { # Pull function for rsync repositories. The details of our rsync # repositories are explained in the user manual. + log "$PWD" " " # Read remote repository address from the '.rsync' file. read -r remote < .rsync @@ -1719,8 +1720,8 @@ pkg_vcs_pull_rsync() { pkg_vcs_pull_local() { # Local repository. We don't do a "pull" here, we just notify the user that # this is the case. - log "$repo" " " - printf '%s\n' "Not a remote repository, skipping." + log "$PWD" " " + out "Not a remote repository, skipping." } pkg_vcs_as_root() ( |