Skip to content

Commit

Permalink
Snagboot v1.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Gantois <[email protected]>
  • Loading branch information
rgantois committed May 23, 2023
1 parent 0505795 commit d38701d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ The affected devices will be accessible to the "plugdev" group, so please check
that you are part of this group. You can also modify the udev rules to pick a
more restrictive group if you wish.

**Warning:** The "plugdev" group does not exist on Fedora, please make sure you
modify the udev rules before installing them! You should replace "plugdev" with
any group you wish, e.g. "users".

Alternatively, Snagboot can be installed as a local Python wheel. An
installation script is provided to automatically build and install the package.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ where = ["src"]

[project]
name = "snagboot"
version = "0.1"
version = "1.0"
authors = [
{ name="Romain Gantois", email="[email protected]" },
]
Expand Down
6 changes: 4 additions & 2 deletions src/snagflash/ums.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ def ums(args):
if args.dest:
if os.path.isdir(args.dest):
wait_filepath(args.dest)
print(f"Copying {args.src} to {args.dest}/{args.src}...")
print(f"Copying {args.src} to {args.dest}/{os.path.basename(args.src)}...")
else:
wait_filepath(os.path.dirname(args.dest))
dirname = os.path.dirname(args.dest)
if dirname != "":
wait_filepath(dirname)
print(f"Copying {args.src} to {args.dest}...")
shutil.copy(args.src, args.dest)
print("Done")
Expand Down

0 comments on commit d38701d

Please sign in to comment.