Skip to content

Commit

Permalink
Fix problems with validation of remove
Browse files Browse the repository at this point in the history
  • Loading branch information
insign committed May 21, 2023
1 parent 2d63f2a commit c610c76
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.45.0
- Fix problems with validation of remove
## v0.44.0
- Fix problems with validation of remove
## v0.43.0
Expand Down
17 changes: 0 additions & 17 deletions lib/os/prepare.dart
Original file line number Diff line number Diff line change
Expand Up @@ -540,22 +540,6 @@ $bestFor
String togetherContents = '''
#!/usr/bin/env bash
# no need to validate using bash
''';

if (removing && bestValidateExecutable == null) {
Logger.info('Validation for removing package $packageName passed!');
}
// else if (bestValidateExecutable == null) {
// leave(
// message: 'No executable found for $packageName, validation failed.',
// exitCode: notFound,
// );
// }
else {
togetherContents = '''
#!/usr/bin/env bash
${await dynamicCode()}
${await baseScriptContents()}
Expand All @@ -564,7 +548,6 @@ ${await packageScript.contents()}
validate "$bestValidateExecutable"
''';
}

return (await writeThisBeast(togetherContents)).path;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/pubspec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const name = 'xpm';
const description =
'Universal package manager for any unix-like distro including macOS. Also experimental Windows support.';
const version = '0.44.0';
const version = '0.45.0';
const homepage = 'https://xpm.link';
const repository = 'https://github.com/verseles/xpm';
const executables = '{xpm: null}';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: xpm
description: Universal package manager for any unix-like distro including macOS. Also experimental Windows support.
version: 0.44.0
version: 0.45.0
homepage: https://xpm.link
repository: https://github.com/verseles/xpm
executables:
Expand Down

0 comments on commit c610c76

Please sign in to comment.