SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The obvious way to handle this guys is Symlinks. Keep your local rsync replica of the repo as is and just use find -exec to build yourself a directory full of links beside it.
I don't see this being that different than flattening the repo itself. You'd still have to deal with any deletions, renamings, and additions to the repo (unless you don't care about tracking upstream changes). In that case, it's probably easier to delete and then rerun the find command (either copying/moving files directly or creating symlinks) and just rebuild the flattened repo with updates from upstream. This would be easily scriptable to update a secondary repo by git, delete the existing flattened repo, and then use find to recreate the flattened repo. It'd be nice to use rsync, but I'm not sure if that would support being able to sync between the flattened and categorized repos (I'm not very good with rsync from memory and always have to dig into the man page).
In that case, it's probably easier to delete and then rerun the find command (either copying/moving files directly or creating symlinks) and just rebuild the flattened repo with updates from upstream.
That is exactly what I was thinking. There is no need to do anything upstream. Rsync can just do rsync's thing and efficiently keep your local repo up to date. Generating removing and recreating the symlink directory should take seconds at most and the best part is nobody else has to know or care you are doing it.
I don't intention to propose any change to repository. It is just that flattened repository can me more easy to deal with. I rare need information about what category software is - in most cases I know this in advance. As people claim around Slackware is about tinkering - not about that there is only one way to do things. I found this useful - maybe others also will find the same.
I found this useful - maybe others also will find the same.
It was never my intention to question you doing this. I was simply providing what I found useful as well. I don't think it's ever bad to see multiple options
Sorry it turned into a flatten vs wildcard debate. That wasn't my goal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.