Skip to content

Commit d38701d

Browse files
committed
Snagboot v1.0 release
Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
1 parent 0505795 commit d38701d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ The affected devices will be accessible to the "plugdev" group, so please check
5252
that you are part of this group. You can also modify the udev rules to pick a
5353
more restrictive group if you wish.
5454

55+
**Warning:** The "plugdev" group does not exist on Fedora, please make sure you
56+
modify the udev rules before installing them! You should replace "plugdev" with
57+
any group you wish, e.g. "users".
58+
5559
Alternatively, Snagboot can be installed as a local Python wheel. An
5660
installation script is provided to automatically build and install the package.
5761

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ where = ["src"]
1111

1212
[project]
1313
name = "snagboot"
14-
version = "0.1"
14+
version = "1.0"
1515
authors = [
1616
{ name="Romain Gantois", email="romain.gantois@bootlin.com" },
1717
]

src/snagflash/ums.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ def ums(args):
100100
if args.dest:
101101
if os.path.isdir(args.dest):
102102
wait_filepath(args.dest)
103-
print(f"Copying {args.src} to {args.dest}/{args.src}...")
103+
print(f"Copying {args.src} to {args.dest}/{os.path.basename(args.src)}...")
104104
else:
105-
wait_filepath(os.path.dirname(args.dest))
105+
dirname = os.path.dirname(args.dest)
106+
if dirname != "":
107+
wait_filepath(dirname)
106108
print(f"Copying {args.src} to {args.dest}...")
107109
shutil.copy(args.src, args.dest)
108110
print("Done")

0 commit comments

Comments
 (0)