Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLiberateWorkflow.php
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | switch ($version) { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht("Can't upgrade a v2 library!")); | pht("Can't upgrade a v2 library!")); | ||||
} | } | ||||
return $this->liberateVersion2($path); | return $this->liberateVersion2($path); | ||||
default: | default: | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht("Unknown library version '%s'!", $version)); | pht("Unknown library version '%s'!", $version)); | ||||
} | } | ||||
echo tsprintf("%s\n", pht('Done.')); | |||||
} | } | ||||
private function getLibraryFormatVersion($path) { | private function getLibraryFormatVersion($path) { | ||||
$map_file = $path.'/__phutil_library_map__.php'; | $map_file = $path.'/__phutil_library_map__.php'; | ||||
if (!Filesystem::pathExists($map_file)) { | if (!Filesystem::pathExists($map_file)) { | ||||
// Default to library v1. | // Default to library v1. | ||||
return 1; | return 1; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |