Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Recursive file adding does not work #8
Python version: 2.7.12
In debreate 0.7.10 you could add all the files of a folder recursively to your package on the files page and the folder structure was kept. Now it adds all files to the same folder and ignores the structure.
Step to reproduce
CPU : x86_64 (64-bit PAE)
Expected behaviour (like 0.7.10 release) : all files are added with the original folder structure as in /usr (for example /usr/bin/mycommand ---> mycommand in /usr/bin)
Actual behaviour (0.7.13) : only "usr" folder is added to /usr target (that is /usr/usr) and the structure is ignored.
If you select all the tree (/usr and subfolders), each file or folder is added in /usr target.
Okay, if I understand correctly, this issue is different than the original topic.
When adding the directory "usr" to the file list, the directory structure is preserved. It's just that the top-level directory "usr" is not trimmed from the file path names.
So, let's say the added directory "usr" contains the file path "usr/bin/foo" and "usr/share/bar":
usr -- bin -- foo | -- share -- bar
Setting the target directory to "/usr" and adding the directory results in the file paths being "/usr/usr/bin/foo" and "/usr/usr/share/bar". Whereas in 0.7.10, if I remember correctly, they would have been "/usr/bin/foo" and "/usr/share/bar".
I understand how this could be frustrating. It sounds to me that the answer would be to have an option to preserve the parent directory from all file path names, like the following, so that both behaviors are supported:
Leaving "Preserve top-level directories" unchecked would have the behavior of 0.7.10.