Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: go/src/infra/tools/cipd/local/deployer.go

Issue 1358533003: cipd: Implement 'init', 'install' and 'installed' subcommands. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/tools/cipd/apps/cipd/main.go ('k') | go/src/infra/tools/cipd/local/manifest.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/tools/cipd/local/deployer.go
diff --git a/go/src/infra/tools/cipd/local/deployer.go b/go/src/infra/tools/cipd/local/deployer.go
index e6a96451fea0591b4566d86dc9132bf6ce1a5cdc..aca6f30e1a4d7ed6828c04d664840c63e3b65839 100644
--- a/go/src/infra/tools/cipd/local/deployer.go
+++ b/go/src/infra/tools/cipd/local/deployer.go
@@ -105,7 +105,7 @@ func (d errDeployer) TempFile(prefix string) (*os.File, error) { ret
// Real deployer implementation.
// packagesDir is a subdirectory of site root to extract packages to.
-const packagesDir = siteServiceDir + "/pkgs"
+const packagesDir = SiteServiceDir + "/pkgs"
// currentSymlink is a name of a symlink that points to latest deployed version.
// Used on Linux and Mac.
@@ -306,7 +306,7 @@ func (d *deployerImpl) RemoveDeployed(packageName string) error {
}
func (d *deployerImpl) TempFile(prefix string) (*os.File, error) {
- dir, err := d.fs.EnsureDirectory(filepath.Join(d.fs.Root(), siteServiceDir, "tmp"))
+ dir, err := d.fs.EnsureDirectory(filepath.Join(d.fs.Root(), SiteServiceDir, "tmp"))
if err != nil {
return nil, err
}
@@ -518,7 +518,7 @@ func scanPackageDir(dir string, l logging.Logger) ([]FileInfo, error) {
if err != nil {
return err
}
- if rel == packageServiceDir || rel == siteServiceDir {
+ if rel == packageServiceDir || rel == SiteServiceDir {
return filepath.SkipDir
}
if info.Mode().IsRegular() || info.Mode()&os.ModeSymlink != 0 {
« no previous file with comments | « go/src/infra/tools/cipd/apps/cipd/main.go ('k') | go/src/infra/tools/cipd/local/manifest.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698