Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
38ef9410
Unverified
Commit
38ef9410
authored
Oct 19, 2022
by
Kevin Moore
Committed by
GitHub
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/bots/prepare_packages: cleanup (#113717)
parent
83a9858f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
prepare_package.dart
dev/bots/prepare_package.dart
+3
-14
No files found.
dev/bots/prepare_package.dart
View file @
38ef9410
...
...
@@ -55,17 +55,6 @@ class PreparePackageException implements Exception {
enum
Branch
{
beta
,
stable
;
static
Branch
fromName
(
String
name
)
{
switch
(
name
)
{
case
'beta'
:
return
Branch
.
beta
;
case
'stable'
:
return
Branch
.
stable
;
default
:
throw
ArgumentError
(
'Invalid branch name.'
);
}
}
}
/// A helper class for classes that want to run a process, optionally have the
...
...
@@ -860,10 +849,10 @@ Future<void> main(List<String> rawArguments) async {
exit
(
exitCode
);
}
final
String
revision
=
parsedArguments
[
'revision'
]
as
String
;
if
(!
parsedArguments
.
wasParsed
(
'revision'
))
{
errorExit
(
'Invalid argument: --revision must be specified.'
);
}
final
String
revision
=
parsedArguments
[
'revision'
]
as
String
;
if
(
revision
.
length
!=
40
)
{
errorExit
(
'Invalid argument: --revision must be the entire hash, not just a prefix.'
);
}
...
...
@@ -872,7 +861,7 @@ Future<void> main(List<String> rawArguments) async {
errorExit
(
'Invalid argument: --branch must be specified.'
);
}
final
String
tempDirArg
=
parsedArguments
[
'temp_dir'
]
as
String
;
final
String
?
tempDirArg
=
parsedArguments
[
'temp_dir'
]
as
String
?
;
Directory
tempDir
;
bool
removeTempDir
=
false
;
if
(
tempDirArg
==
null
||
tempDirArg
.
isEmpty
)
{
...
...
@@ -897,7 +886,7 @@ Future<void> main(List<String> rawArguments) async {
final
bool
publish
=
parsedArguments
[
'publish'
]
as
bool
;
final
bool
dryRun
=
parsedArguments
[
'dry_run'
]
as
bool
;
final
Branch
branch
=
Branch
.
from
Name
(
parsedArguments
[
'branch'
]
as
String
);
final
Branch
branch
=
Branch
.
values
.
by
Name
(
parsedArguments
[
'branch'
]
as
String
);
final
ArchiveCreator
creator
=
ArchiveCreator
(
tempDir
,
outputDir
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment