7

I started setting up a deb repository today for some of our applications. Given that they are interpreted scripts, I went with "all" architecture (from conf/distributions):

Codename: lucid
Architectures: all

But reprepro will print a warning when I try to add a .deb to the repository:

WARNING: Distribution lucid contains an architecture called 'all'.

Now I wonder why it warns about that? What's the problem?

Oliver Salzburg
  • 4,635
  • 17
  • 55
  • 82
  • I don't know why it does that, but try removing the "Architectures" line. Does it work that way? – Eduardo Ivanec Jun 10 '11 at 14:04
  • @Eduardo That results in Required field 'Architectures' expected (since line 1). I also checked the source of reprepro. It explicitly checks for "all". But there is no comment in the source about thre reason either :( – Oliver Salzburg Jun 10 '11 at 14:05
  • Does it add the .deb anyway when it gives you the "all" error? It's only a warning, so I guess it should. Try using "amd64 all" instead to see if it only gives you a warning because it's the only one present. – Eduardo Ivanec Jun 10 '11 at 14:09
  • @Eduardo No it doesn't create anything for "all". Also the "Packages" files for other architectures (like amd64) are created empty. – Oliver Salzburg Jun 10 '11 at 14:18
  • It sounds like a bug reports would be adequate. Does the tool have a `--verbose` switch you could use? – Eduardo Ivanec Jun 10 '11 at 14:28
  • I don't think it's a bug. The source shows that it explicitly checks for the "all" architecture. So, most likely, there is something special (wrong) about it. – Oliver Salzburg Jun 11 '11 at 00:05

1 Answers1

6

Ah ha! I finally just figured it out. This has been frustrating me for ages now.

If you specify your .deb (control file) as Architecture: all, then don't put anything into the reprepro distributions file other than the arch's that you want it to get put into.

Architectures: amd64 i386 ...

  • Had to figure that out too. The `all` packages are then available in all the architectures defined in `conf/distributions`. – ortang Jan 19 '16 at 17:24