Hello Michael,<br>Thank you for your help. We followed your suggestions with some modification and it helps.<br>We can set repositories based on HW class. And we should be able to manage version of package by adding package pin entry in /etc/apt/preferences/CLASS when needed<br>
Here what we did.<br>1) We used individual repository for every Hardware CLASS in configuration.<br>2) The string "fcopy /etc/apt/sources.list" was placed in updatebase hook.
(not in instsoft hook because updatebase task updates the list of
available packages. That's probably why it didn't work before).<br>3) LAN initialization has been made in debconf hook to retrieve Debian repositories by network<br><br>Best Regards,<br>Alexey.<br><br><br><div class="gmail_quote">
2009/9/3 Michael Goetze <span dir="ltr"><<a href="mailto:mgoetze@mgoetze.net">mgoetze@mgoetze.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alex,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can someone suggest a way to install different versions of the same package for different HW platforms?<br>
Our thoughts were the following.<br>
1) Using instsoft hook, which is run before packages installation process starts, to add HW specific repository for the platform handled.<br>
apt-get update is run after adding a HW repository to sources.list. We tried this but didn't succeed.<br>
</blockquote>
<br></div>
Write an instsoft hook which just does<br>
<br>
fcopy /etc/apt/sources.list /etc/apt/preferences<br>
<br>
Then you can put all the configuration for your Hardware CLASS in files/etc/apt/{sources.list,preferences}/CLASS.<br>
<br>
Regards,<br><font color="#888888">
Michael<br>
</font></blockquote></div><br>