mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 00:16:22 +01:00
dotnet_dependencies.py
This commit is contained in:
parent
0dbb993a11
commit
13d54be491
1 changed files with 32 additions and 0 deletions
32
scripts/dotnet_dependencies.py
Executable file
32
scripts/dotnet_dependencies.py
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
This script extracts
|
||||||
|
"""
|
||||||
|
__author__ = "Anton Bolshakov"
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
import glob
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
|
||||||
|
path_packages = os.path.expanduser("~/.nuget/packages")
|
||||||
|
|
||||||
|
def main(argv):
|
||||||
|
|
||||||
|
if not os.path.isdir(path_packages):
|
||||||
|
sys.exit("nuget directory (%s) not found" % packages)
|
||||||
|
|
||||||
|
for dir_name in os.listdir(path_packages):
|
||||||
|
path_version = os.path.join(path_packages, dir_name)
|
||||||
|
if os.path.isdir(path_version):
|
||||||
|
for dir_version in os.listdir(path_version):
|
||||||
|
print("%s@%s" % (dir_name, dir_version))
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sys.exit(main(sys.argv))
|
||||||
Loading…
Reference in a new issue