Skip to content

Commit

Permalink
Pkg.obliterate() is a way to get rid of local packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pao committed Dec 6, 2012
1 parent 8f67a79 commit 975c7b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ to prepare METADATA with the details for your package."
end
end

# Remove local traces of a package (broken due to a bad .new(), for instance)
obliterate(package_name::String) = cd_pkgdir() do
run(`rm -rf $(package_name) $(file_path("METADATA", package_name))`)
end

# If a package contains data, make it easy to find its location
function package_directory(package_name::String)
if has(ENV, "JULIA_PKGDIR")
Expand Down

0 comments on commit 975c7b1

Please sign in to comment.