#231260 [tagfile] Rewriting the same field more than once outputs duplicate fields

Package:
apt-utils
Source:
apt
Description:
package management related utility programs
Submitter:
Christian Marillat
Date:
2015-08-21 14:45:07 UTC
Severity:
wishlist
#231260#5
Date:
2004-02-05 13:05:10 UTC
From:
To:
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

#231260#10
Date:
2004-02-05 15:14:39 UTC
From:
To:
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

#231260#15
Date:
2004-02-05 15:14:39 UTC
From:
To:
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

#231260#22
Date:
2004-02-05 18:00:59 UTC
From:
To:
Hi,

aparently apt-ftparchive produces wrong Packages files with multiple
Filename fields.

MfG
	Goswin

#231260#29
Date:
2004-02-27 00:25:52 UTC
From:
To:
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?

#231260#34
Date:
2004-02-27 07:19:45 UTC
From:
To:
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

#231260#39
Date:
2004-02-27 08:16:01 UTC
From:
To:
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.

#231260#44
Date:
2004-02-27 08:23:47 UTC
From:
To:
Matt Zimmerman <mdz@debian.org> writes:

Attached with a override file.

I can't use symlinks with my http access.

Christian

#231260#49
Date:
2004-02-27 08:27:04 UTC
From:
To:
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

#231260#54
Date:
2004-02-27 16:55:54 UTC
From:
To:
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.

#231260#59
Date:
2004-02-27 17:07:33 UTC
From:
To:
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

#231260#64
Date:
2004-02-27 17:26:17 UTC
From:
To:
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.

#231260#69
Date:
2004-02-27 18:57:48 UTC
From:
To:
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

#231260#74
Date:
2004-02-27 19:01:20 UTC
From:
To:
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.

#231260#79
Date:
2004-02-28 09:35:07 UTC
From:
To:
Previously Christian Marillat wrote:

Can't you use hardlinks?

Wichert.

#231260#84
Date:
2004-02-28 10:02:27 UTC
From:
To:
Wichert Akkerman <wichert@wiggy.net> writes:

No I can't.

Christian

#231260#89
Date:
2004-02-28 13:56:16 UTC
From:
To:
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

#231260#94
Date:
2004-02-28 21:33:16 UTC
From:
To:
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.

#231260#99
Date:
2004-02-28 21:43:35 UTC
From:
To:
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