Skip to content

Commit d1e0e0d

Browse files
authored
Merge pull request #198 from desultory/dev
Use the old staging area if INSTALLKERNEL_STAGING_AREA is not set, improve logging
2 parents 7640c4d + 2c0391f commit d1e0e0d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

hooks/installkernel/52-ugrd.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
ver=${1}
66
img=${2}
7-
initrd=${INSTALLKERNEL_STAGING_AREA}/initrd
7+
initrd=${INSTALLKERNEL_STAGING_AREA:-$(dirname "${img}")}/initrd
88

99
# familiar helpers, we intentionally don't use Gentoo functions.sh
1010
die() {

src/ugrd/base/core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "desultory"
2-
__version__ = "4.1.0"
2+
__version__ = "4.1.1"
33

44
from pathlib import Path
55
from shutil import rmtree, which
@@ -258,8 +258,11 @@ def _process_out_file(self, out_file: str) -> None:
258258
return
259259

260260
if "/" in out_file: # If the out_file contains a path, resolve it
261-
out_file = Path(out_file).resolve()
262-
self.logger.info("Resolved relative output path: %s" % out_file)
261+
out_file = Path(out_file)
262+
resolved_out_file = out_file.resolve()
263+
if resolved_out_file != out_file:
264+
out_file = resolved_out_file
265+
self.logger.info("Resolved relative output path: %s" % out_file)
263266
else:
264267
out_file = Path(out_file)
265268

0 commit comments

Comments
 (0)