Summary: | `repoman commit --echangelog` fails if sharing tree with other users | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | Repoman | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | floppym, lu_zero |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Diego Elio Pettenò (RETIRED)
2012-05-16 02:10:29 UTC
shutil.move calls os.rename and falls back to shutil.copy2 if that fails. I wonder why os.rename would fail? This looks a lot like bug #413397. Perhaps the correct error code isn't defined here either? That was "ENOSUPP", here is "ENOPERM"... so different issue but still similar enough. For sure it sounds like Python's mainly at fault. shutil.copy2 tries to preserve extended attributes (e.g. ACLs) only since Python 3.3. In /usr/lib64/python2.7/shutil.py in move() function apply: try: os.rename(src, real_dst) - except OSError: + except OSError as e: + print(e) if os.path.isdir(src): And show exception. Changelogs are now obsolete, gone from the tree and even from the normal rsync tree (is an optional download, generated from git logs) |