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

Side by Side Diff: utils/pub/sdk.dart

Issue 12316056: Move pkg/path to pkg/pathos. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/pubspec.dart ('k') | utils/pub/sdk_source.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Operations relative to the user's installed Dart SDK. 5 /// Operations relative to the user's installed Dart SDK.
6 library sdk; 6 library sdk;
7 7
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import '../../pkg/path/lib/path.dart' as path; 10 import '../../pkg/pathos/lib/path.dart' as path;
11 11
12 import 'io.dart'; 12 import 'io.dart';
13 import 'log.dart' as log; 13 import 'log.dart' as log;
14 import 'version.dart'; 14 import 'version.dart';
15 15
16 /// Matches an Eclipse-style SDK version number. This is four dotted numbers 16 /// Matches an Eclipse-style SDK version number. This is four dotted numbers
17 /// (major, minor, patch, build) with an optional suffix attached to the build 17 /// (major, minor, patch, build) with an optional suffix attached to the build
18 /// number. 18 /// number.
19 final _versionPattern = new RegExp(r'^(\d+)\.(\d+)\.(\d+)\.(\d+.*)$'); 19 final _versionPattern = new RegExp(r'^(\d+)\.(\d+)\.(\d+)\.(\d+.*)$');
20 20
(...skipping 29 matching lines...) Expand all
50 "format pub could recognize. Found: $version"); 50 "format pub could recognize. Found: $version");
51 } 51 }
52 52
53 // Semantic versions cannot use "_". 53 // Semantic versions cannot use "_".
54 var build = match[4].replaceAll('_', '.'); 54 var build = match[4].replaceAll('_', '.');
55 55
56 return new Version( 56 return new Version(
57 int.parse(match[1]), int.parse(match[2]), int.parse(match[3]), 57 int.parse(match[1]), int.parse(match[2]), int.parse(match[3]),
58 build: build); 58 build: build);
59 } 59 }
OLDNEW
« no previous file with comments | « utils/pub/pubspec.dart ('k') | utils/pub/sdk_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698