aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-07-14 21:10:07 +0200
committerAndré Erdmann <dywi@mailerd.de>2014-07-14 21:10:07 +0200
commit34cb631ea53c2302bf39257a0a758a780b144d2e (patch)
tree42155b229420f48f123e7ca2418e09d5831bcb22 /roverlay/overlay
parentpackagerules: fix typo (diff)
downloadR_overlay-34cb631ea53c2302bf39257a0a758a780b144d2e.tar.gz
R_overlay-34cb631ea53c2302bf39257a0a758a780b144d2e.tar.bz2
R_overlay-34cb631ea53c2302bf39257a0a758a780b144d2e.zip
distroot: do not create subdirs when renaming
replace os.sep in the repo name with "_" instead.
Diffstat (limited to 'roverlay/overlay')
-rw-r--r--roverlay/overlay/pkgdir/distroot/distroot.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/roverlay/overlay/pkgdir/distroot/distroot.py b/roverlay/overlay/pkgdir/distroot/distroot.py
index 9872aad..f25ee61 100644
--- a/roverlay/overlay/pkgdir/distroot/distroot.py
+++ b/roverlay/overlay/pkgdir/distroot/distroot.py
@@ -660,7 +660,9 @@ class PersistentDistroot ( DistrootBase ):
orig_src_uri_dest = package_info.get_src_uri_dest()
# distfile_dirname, distfile_os_sep, distfile_basename
distfile = orig_src_uri_dest.rpartition ( os.sep )
- rename_prefix = package_info ['repo_name'].lower() + '_'
+ rename_prefix = (
+ package_info ['repo_name'].lower().replace ( os.sep, '_' ) + '_'
+ )
rename_prefix_len = len ( rename_prefix )
assert distfile[2]