Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2017-06-28 17:36:59 +0300
committerPaweł Chmielowski <pchmielowski@process-one.net>2017-06-28 17:36:59 +0300
commitdc7fa076d7c3168bff458a62d92d1cbd32ac65f6 (patch)
tree4e47eca4ed73738c06d64bdae65d4b8674d2d3ea /tools
parent960cf495c6dd9f08e05d7f0b4d435f5c791b0a4c (diff)
Fix problem with updating deps in rebar.config for non-tags
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-deps-releases.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/update-deps-releases.pl b/tools/update-deps-releases.pl
index e1de817ec..fdacecb39 100755
--- a/tools/update-deps-releases.pl
+++ b/tools/update-deps-releases.pl
@@ -60,7 +60,7 @@ sub update_deps_repos {
system("git", "-C", ".deps-update", "clone", $repo);
} elsif (time() - stat($dd)->mtime > 24 * 60 * 60) {
say "Updating $dep...";
- system("git", "-C", $dd, "fetch");
+ system("git", "-C", $dd, "pull");
touch($dd)
}
}
@@ -134,7 +134,7 @@ sub update_deps_versions {
my $config = slurp $config_path;
for (keys %deps) {
- $config =~ s/(\{\s*$_\s*,\s*".*?"\s*,\s*\{\s*git\s*,\s*".*?"\s*,\s*)(?:{\s*tag\s*,\s*"(.*?)"\s*}|"(.*?)" )/$1\{tag, "$deps{$_}"}/s;
+ $config =~ s/(\{\s*$_\s*,\s*".*?"\s*,\s*\{\s*git\s*,\s*".*?"\s*,\s*)(?:{\s*tag\s*,\s*"(.*?)"\s*}|"(.*?)")/$1\{tag, "$deps{$_}"}/s;
}
write_file($config_path, $config);