Hi, I need to rewrite the Filename: field in the Packages file, but debmirror is unable to read the rigth entry. You can find my Packages files here : http://marillat.free.fr/dists/unstable/main/binary-i386/Packages Debmirror read the first entry when the correct is the second. Christian
Christian Marillat <marillat@debian.org> writes:
If you need to _rewrite_ the Filename then do so. Just appending a
second entry is not right. Every tool that uses the Packages files
will behave differently or even report an error when keys are repeated
in the Packages file, don't do that.
Which is perfectly valid behaviour. Keys are suposed to be unique so
the first one found is assumed to be the only one. Please fix your
Packages file.
MfG
Goswin
Christian Marillat <marillat@debian.org> writes:
If you need to _rewrite_ the Filename then do so. Just appending a
second entry is not right. Every tool that uses the Packages files
will behave differently or even report an error when keys are repeated
in the Packages file, don't do that.
Which is perfectly valid behaviour. Keys are suposed to be unique so
the first one found is assumed to be the only one. Please fix your
Packages file.
MfG
Goswin
Hi, aparently apt-ftparchive produces wrong Packages files with multiple Filename fields. MfG Goswin
That packages file looks broken. What command was used to generate it? Why are files under dists/stable being fed to apt-ftparchive when generating a Packages file for dists/unstable?
Matt Zimmerman <mdz@debian.org> writes: apt-ftparchive generate apt-conf Because these packages are provided in binary form and are too big to be packaged for each distribution. This eat my web space for nothing. Christian
Obviously I need to see the configuration file in that case. This still doesn't make sense. There are much better ways to do this. You can use a pool structure like the Debian archive, or you can use symlinks.
Matt Zimmerman <mdz@debian.org> writes: Attached with a override file. I can't use symlinks with my http access. Christian
Matt Zimmerman <mdz@debian.org> writes: Attached with also a override file. I can't use symlink with http, And there is no tool to make a spool structure. If I want to do that a need to edit all my files by hand. Christian
retitle 231260 [tagfile] Rewriting the same field more than once outputs duplicate fields severity 231260 wishlist thanks You're trying to override the Filename field? Why? If I understand what you are doing correctly, you should use FileList instead.
Matt Zimmerman <mdz@debian.org> writes: Because I'm short with my web space and with that I save 53 MB. But my repository is too big for that (198 packages without the sources) and without any tools I need to edit FileList for three distributions. Completely unmanageable. Christian
No, with that you break the tools. There are much easier ways to get the same file listed in multiple Packages files, which don't break things. I don't understand. Your repository is too big for what? What do you mean, without any tools? You already have a list of the additional filenames in the override file you sent. Instead of using an override file, add those files to apt-ftparchive's list of package files using FileList and let it scan them in the normal way.
Matt Zimmerman <mdz@debian.org> writes: [...] Localy the size for all my packages is 153 MB when my quota for my http site is 100 MB Do you see the problem ? No tools to add automaticaly the packages filename in FileList files. I did. I'll see in the futur if I can manage my site with FileList. Christian
Make your local repository a mirror of your remote repository. Set things up the way you want it, and then synch it to the http server. Where do you get the list of files for the override file? If it is automatic, change it to output a list for FileList instead. If it is manual, convert your override file into a simple list of debs and concatenate it with the rest of them for FileList.
Previously Christian Marillat wrote: Can't you use hardlinks? Wichert.
Wichert Akkerman <wichert@wiggy.net> writes: No I can't. Christian
Matt Zimmerman <mdz@debian.org> writes: [...] But I can't. How I can upload 153 MB when my quota is set to 100 MB ? Christian
I wasn't suggesting that you upload 153MB. If it is 153MB because you store multiple copies of packages, share the packages between distributions. If it is 153MB because you have packages in it that you do not normally upload to your web repository, then filter out those packages.
Matt Zimmerman <mdz@debian.org> writes: [...] This is what I'm doing with my override files. OK this is not the right method, but this is less work. My override files contains 31 entries when my filelist files contains 122 entries. Anyway now I use the Filelist method to not break debmirror users. Christian