File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
using Pkg
2
2
3
- function general_registry_location ()
3
+ function tarball_general_registry_location ()
4
+ reg_dir = joinpath (DEPOT_PATH [1 ], " registries" )
5
+ general_registry_tarball = joinpath (reg_dir, " General.tar.gz" )
6
+ registry_toml_file = joinpath (reg_dir, " General.toml" )
7
+ return general_registry_tarball, registry_toml_file
8
+ end
9
+
10
+ function cloned_general_registry_location ()
4
11
general_registry_dir = joinpath (DEPOT_PATH [1 ], " registries" , " General" )
5
12
registry_toml_file = joinpath (general_registry_dir, " Registry.toml" )
6
13
return general_registry_dir, registry_toml_file
7
14
end
8
15
9
16
function general_registry_exists ()
10
- general_registry_dir, registry_toml_file = general_registry_location ()
17
+ general_registry_tarball, registry_toml_file = tarball_general_registry_location ()
18
+ if isfile (general_registry_tarball) && isfile (registry_toml_file)
19
+ return true
20
+ end
21
+ general_registry_dir, registry_toml_file = cloned_general_registry_location ()
11
22
if ! isdir (general_registry_dir)
12
23
return false
13
24
elseif ! isfile (registry_toml_file)
You can’t perform that action at this time.
0 commit comments