-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Get-AllPackageInfoFromRepo (#16947)
* Add Get-AllPackageInfoFromRepo * make get_package_properties.py a script with arguments * handle invalid output from get_package_properties.py * Move Push-Location into try block, add finally block * Ensure isNewSdk resolves to a boolean
- Loading branch information
1 parent
3209d78
commit 9b71692
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import argparse | ||
import sys | ||
import glob | ||
import os | ||
|
||
sys.path.append(os.path.join('scripts', 'devops_tasks')) | ||
from common_tasks import get_package_properties | ||
|
||
if __name__ == '__main__': | ||
parser = argparse.ArgumentParser(description='Get package version details from the repo') | ||
parser.add_argument('-s', '--search_path', required=True, help='The scope of the search') | ||
args = parser.parse_args() | ||
|
||
for p in glob.glob(args.search_path, recursive=True): | ||
if os.path.basename(os.path.dirname(p)) != 'azure-mgmt' and os.path.basename(os.path.dirname(p)) != 'azure' and os.path.basename(os.path.dirname(p)) != 'azure-storage': | ||
print(get_package_properties(os.path.dirname(p))) |