Ticket #849 (closed defect: fixed)
Packages plugin ignores sources from the same URL
Reported by: | Jeff Strunk <[email protected]…> | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.1.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: | [email protected]… |
Description
I am using version 1.0.1-1~ppa2~hardy2.
The packages plugin appears to be ignoring APTSource containers if the URL is the same as one it has already seen. I have attached some examples to illustrate this.
The first example is an excerpt from our config.xml. It has 5 APTSource containers with the same URL, but different Versions.
The second attachment shows an ls in the cache directory. It only shows files for the first APTsource container.
In IRC, Sol showed me that I could use multiple Version tags in an APTSource container even though Desai says it shouldn't work. This is not valid when different versions of the OS are stored in the same repository. I first discovered this when I had hardy and jaunty versions of packages in a repository.
Attachments
Change History
Changed 13 years ago by Jeff Strunk <[email protected]…>
- Attachment config.xml added
Changed 13 years ago by Jeff Strunk <[email protected]…>
- Attachment cache_ls.txt added
Directory listing of the Packages cache.
comment:1 Changed 13 years ago by solj
I was actually incorrect. It looks like you need separate APTSource entries for each Version. Here is my config for lucid using the same URL, but different Versions:
<Sources> <!-- Ubuntu sources --> <!-- Stock Lucid sources --> <APTSource> <Group>lucid</Group> <URL>http://ftp.ices.utexas.edu/ubuntu</URL> <Version>lucid</Version> <Component>main</Component> <Component>multiverse</Component> <Component>restricted</Component> <Component>universe</Component> <Arch>amd64</Arch> </APTSource> <APTSource> <Group>lucid</Group> <URL>http://ftp.ices.utexas.edu/ubuntu</URL> <Version>lucid-backports</Version> <Component>main</Component> <Component>multiverse</Component> <Component>restricted</Component> <Component>universe</Component> <Arch>amd64</Arch> </APTSource> <APTSource> <Group>lucid</Group> <URL>http://ftp.ices.utexas.edu/ubuntu</URL> <Version>lucid-updates</Version> <Component>main</Component> <Component>multiverse</Component> <Component>restricted</Component> <Component>universe</Component> <Arch>amd64</Arch> </APTSource> <APTSource> <Group>lucid</Group> <URL>http://ftp.ices.utexas.edu/ubuntu</URL> <Version>lucid-security</Version> <Component>main</Component> <Component>multiverse</Component> <Component>restricted</Component> <Component>universe</Component> <Arch>amd64</Arch> </APTSource> <!-- Custom Lucid sources --> <APTSource> <Group>lucid</Group> <URL>http://ftp.ices.utexas.edu/medibuntu</URL> <Version>lucid</Version> <Component>free</Component> <Component>non-free</Component> <Arch>amd64</Arch> </APTSource> <APTSource> <Group>lucid</Group> <URL>http://ftp.ices.utexas.edu/ubuntu-sysnet</URL> <Version>lucid</Version> <Component>main</Component> <Arch>amd64</Arch> </APTSource> </Sources>
I haven't tried using the same URL for different distros, but it seems like it should work.
excerpt from Packages/config.xml