Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#60839 - [pax-utils] lddtree fails with --copy-to-tree

Attached to Project: Community Packages
Opened by Oleksandr Natalenko (post-factum) - Saturday, 17 November 2018, 14:27 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 23 January 2019, 14:36 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

If using lddtree with --copy-to-tree, it fails:

===
File "/bin/lddtree", line 125, in makedirs
if e.errno != os.errno.EEXIST:
AttributeError: module 'os' has no attribute 'errno'
===

This is because os.errno was removed [1]. Instead, errno should be used [2].

This diff fixes the issue:

===
--- /bin/lddtree~ 2018-11-17 15:21:30.144516240 +0100
+++ /bin/lddtree 2018-11-17 15:21:40.644701119 +0100
@@ -122,7 +122,7 @@
try:
os.makedirs(path)
except OSError as e:
- if e.errno != os.errno.EEXIST:
+ if e.errno != errno.EEXIST:
raise
===

Additional info:
* package version(s)

pax-utils-1.2.3-3

* config and/or log files etc.

N/A

Steps to reproduce:

Something like:

* mkdir mc
* cd mc
* lddtree --copy-to-tree . `which mc`

[1] https://bugs.python.org/issue33666
[2] https://python.readthedocs.io/en/latest/library/errno.html
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 23 January 2019, 14:36 GMT
Reason for closing:  Fixed
Additional comments about closing:  pax-utils 1.2.4-1
Comment by Oleksandr Natalenko (post-factum) - Saturday, 17 November 2018, 17:21 GMT
I've also submitted this fix to the Gentoo maintainers listed in the BUGS file of the package.
Comment by Oleksandr Natalenko (post-factum) - Monday, 19 November 2018, 16:51 GMT Comment by Oleksandr Natalenko (post-factum) - Monday, 19 November 2018, 22:46 GMT

Loading...