[Apt-Rpm] repomd repositories: variable substitution and pinning

Alexander 'Leo' Bergolth leo at strike.wu-wien.ac.at
Thu Apr 24 06:29:55 PDT 2008


Hi!

I'd like to switch from old genbasedir-style repository metadata to repomd.

However, I need apt-pinning which uses the third column of the repomd 
sources.list-entries as the component-part of the repository.

Since variable substitution ($(VERSION), $(ARCH)) doesn't seem to work 
in the preferences file, I'd like to specify lines like

-------------------- 8< --------------------
repomd http://wolfcastle.wu-wien.ac.at/dist/f$(VERSION)-$(ARCH)/ 
RPMS.updates
-------------------- 8< --------------------

... where the baseuri-part contains version and architecture and the 
third column only contains the channel.

But unfortunately it looks like only $(ARCH) is correctly substituted 
when used in the second column. The line above results in a request like 
that:

-------------------- 8< --------------------
GET /dist/f$(VERSION)-i386/RPMS.updates/repodata/repomd.xml HTTP/1.1\r\n
-------------------- 8< --------------------

If I change the repository definition to
-------------------- 8< --------------------
repomd http://wolfcastle.wu-wien.ac.at/dist/ 
f$(VERSION)-$(ARCH)/RPMS.updates
-------------------- 8< --------------------
... where the third column contains version and arch, everything works 
fine but I have to add distribution and architecture to 
/etc/apt/preferences.

Are there any plans to change this behavior?

Cheers,
--leo

P.S.: I'm using  apt-0.5.15lorg3.93-4.fc8 from ATrpms.

-- 
e-mail   ::: Leo.Bergolth (at) wu-wien.ac.at
fax      ::: +43-1-31336-906050
location ::: Computer Center | Vienna University of Economics | Austria




More information about the Apt-Rpm mailing list