Skip to content

Commit

Permalink
Remove single repo/multi package for patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mosa11aei committed Jul 11, 2024
1 parent bd03e0e commit 2037d07
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/fppm/cli/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,31 +225,6 @@ def install_package(args, context):
stderr=subprocess.PIPE,
stdout=subprocess.PIPE,
)

if package['info']['dir'] is not None:
try:
subprocess.check_call([
'git',
'sparse-checkout',
'set',
'--no-cone',
package['info']['dir']
])
except Exception as e:
print(f"[ERR]: Error setting sparse-checkout: {e}")
return 1

# move the files to the root of the package
try:
subprocess.check_call([
'mv',
f"{package['info']['dir']}/*",
"."
])
shutil.rmtree(package['info']['dir'])
except Exception as e:
print(f"[ERR]: Error moving files to root of package: {e}")
return 1

os.chdir("../../")
versionTextTernary = (
Expand Down

0 comments on commit 2037d07

Please sign in to comment.