Hi Uwe, List,
I am trying to set up a parallel update tree to the oss repository
for opensuse-10.3 and not having much success, though I used this
successfully in 10.1 and 10.2. I have tried to follow the various
directions on using inst-source-utils from
http://en.opensuse.org/Inst-source-utils
and Uwe's page (entry for create_update_source.sh Version 20060925)
http://www.suse.de/~ug/
These are slightly contradictory though and I have tended towards the
ones on the Inst-source-utils page as they seem to be more recent.
I have tried both inst-source-utils-2006.11.21-2 (from opensuse 10.2)
and inst-source-utils-2007.9.26-4 from 10.3 to the same effect.
I have a directory into which I have put a mirror of the oss
repository, this is the $(BASE) macro in the Makefile below. Basically
I type 'make' and it goes and does the steps in the all: target. But
when I try to add the repository using 'zypper sa' it complains that
./suse/setup/descr/packages is missing, but there is such a file in
the repository, provided ./ is taken to be the top-level oss/update
directory. Here is the error in detail, and below that is my Makefile.
$ sudo zypper sa nfs://host.cl.cam.ac.uk/suse-10.3/oss/updates \
opensuse-10.3-CL-extras
* Adding repository 'opensuse-10.3-CL-extras'
Repository 'opensuse-10.3-CL-extras' successfully added:
Enabled: Yes
Autorefresh: Yes
URL: nfs://elmer.cl.cam.ac.uk/vol/vol3/sys-li9/suse-10.3/oss/updates
carlit:repos$ sudo zypper search mlton
Refreshing 'opensuse-10.3-CL-extras'
* Building repository 'opensuse-10.3-CL-extras' cache
Error parsing metadata for 'opensuse-10.3-CL-extras':
/var/cache/zypp/raw/opensuse-10.3-CL-extras:
Required file is missing: ./suse/setup/descr/packages
This may be caused by invalid metadata in the repository, or by a bug
in the met adata parser. In the latter case, or if in doubt, please,
file a bug report by f ollowing instructions at
http://en.opensuse.org/Zypper#Troubleshooting
Disabling repository 'opensuse-10.3-CL-extras' because of the above error.
* Reading installed packages [100%]
No resolvables found.
$
==============================================================
And here's the Makefile
==============================================================
VERSION=10.3
REPO=oss
BASE=/usr/groups/suse-$(VERSION)/$(REPO)
KEYID=rpm-packager
EXTRA_RPMS=extra-rpms
.phony : all sign-rpms sign-repo build-repo update-checksums
all : build-repo update-checksums sign-repo
sign-rpms :
rpm --define '_signature gpg' \
--define '_gpg_name ' \
--quiet --resign $(EXTRA_RPMS)/*/*.rpm 2>&1 | grep -v 'skipping$$'
build-repo :
-rm -rf $(BASE)/updates
( cd $(BASE) && create_update_source.sh . )
cd $(EXTRA_RPMS) ; \
for arch in * ; do \
mkdir -p $(BASE)/updates/suse/$$arch ; \
cp $$arch/*.rpm $(BASE)/updates/suse/$$arch ; \
done
update-checksums :
cd $(BASE)/updates/suse/ && \
create_package_descr -x setup/descr/EXTRA_PROV ; \
cd setup/descr/ && \
create_directory.yast . && \
create_md5sums . && \
cp $(BASE)/gpg-pubkey-*.asc $(BASE)/updates
sign-repo :
cd $(BASE)/updates && \
gpg --export --armor $(KEYID) > content.key ; \
gpg -b --sign --armor -u $(KEYID) content ; \
ls > directory.yast
====================================================================
Here is what looks like the relevant part of the zypper log when
I try the refresh
=====================================================================
2007-10-30 15:36:55 <1> carlit(11565) [zypp]
RepoManager.cc(checkIfToRefreshMetadata):438 Repository 'opensuse-
10.3-CL-extras' has been refreshed less than repo.refresh.delay (10)
minutes ago. Advising to skip refresh
2007-10-30 15:36:55 <1> carlit(11565) [zypper]
zypper-sources.cc(refresh_repos):580 calling buildCache
2007-10-30 15:36:55 <5> carlit(11565) [Measure] Measure.cc(Impl):152
START MEASURE(Check tables exist)
2007-10-30 15:36:55 <5> carlit(11565) [Measure]
Measure.cc(elapsed):174 ELAPSED(Check tables exist) 0 (u 0.00 s
0.00 c 0.00)
2007-10-30 15:36:55 <5> carlit(11565) [Measure] Measure.cc(~Impl):160
MEASURE(Check tables exist) 0 (u 0.00 s 0
.00 c 0.00) [0 (u 0.00 s 0.00 c 0.00)]
2007-10-30 15:36:55 <1> carlit(11565) [zypp]
CacheInitializer.cc(CacheInitializer):97 Repository cache already
initialized
2007-10-30 15:36:55 <1> carlit(11565) [zypp]
RepoManager.cc(buildCache):691 opensuse-10.3-CL-extras building ca
che...
2007-10-30 15:36:55 <2> carlit(11565) [parser::susetags]
RepoParser.cc(assertMandatoryFile):222 /var/cache/zypp
/raw/opensuse-10.3-CL-extras: Skip gz required file (will look for
non-gz): ./content.gz
2007-10-30 15:36:55 <1> carlit(11565) [parser::susetags]
ContentFileReader.cc(parse):293 Start parsing /var/cac
he/zypp/raw/opensuse-10.3-CL-extras/content[g___]
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(0%)
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(23%)
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(44%)
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(67%)
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(88%)
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(100%)
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):80 {#25|/var/cache/zypp/raw/opensuse-1
0.3-CL-extras/content}(100%)
2007-10-30 15:36:55 <1> carlit(11565) [parser::susetags]
RepoParser.cc(consumeProd):80 [Product] [ openSUSE-FTP_Updates 10.3
x86_64 ]
2007-10-30 15:36:55 <1> carlit(11565) [parser::susetags]
ContentFileReader.cc(endParse):255 [Content]
2007-10-30 15:36:55 <1> carlit(11565) [parser::susetags]
ContentFileReader.cc(parse):537 Done parsing
/var/cache/zypp/raw/opensuse-10.3-CL-extras/content[_eF_]
2007-10-30 15:36:55 <0> carlit(11565) [Progress]
ProgressData.cc(report):86
{#25|/var/cache/zypp/raw/opensuse-10.3-CL-extras/content}END
2007-10-30 15:36:55 <0> carlit(11565) [parser::susetags]
RepoParser.cc(parse):424 ReferenceCounted(@0x7a03d0<=1)
2007-10-30 15:36:55 <1> carlit(11565) [parser::susetags]
RepoParser.cc(parse):441 Total job size: 0
2007-10-30 15:36:55 <2> carlit(11565) [parser::susetags]
RepoParser.cc(assertMandatoryFile):222
/var/cache/zypp/raw/opensuse-10.3-CL-extras: Skip gz required file
(will look for non-gz): ./suse/setup/descr/packages.gz
2007-10-30 15:36:55 <5> carlit(11565) [zypp] Exception.cc(log):119
RepoParser.cc(assertMandatoryFile):232 THROW:
RepoParser.cc(assertMandatoryFile):232:
/var/cache/zypp/raw/opensuse-10.3-CL-extras: Required file is missing:
./suse/setup/descr/packages
2007-10-30 15:36:55 <1> carlit(11565) [zypp] CacheStore.cc(~Impl):155
name cache hits: 0 | cache size: 5
2007-10-30 15:36:55 <5> carlit(11565) [zypp] Exception.cc(log):119
zypper-sources.cc(build_cache):163 CAUGHT:
RepoParser.cc(assertMandatoryFile):232:
/var/cache/zypp/raw/opensuse-10.3-CL-extras: Required file is missing:
./suse/setup/descr/packages
2007-10-30 15:36:55 <3> carlit(11565) [zypper]
zypper-sources.cc(build_cache):174 Error parsing metadata for
'opensuse-10.3-CL-extras':
2007-10-30 15:36:55 <3> carlit(11565) [zypper]
zypper-sources.cc(refresh_repos):589 Skipping repository
'opensuse-10.3-CL-extras' because of the above error.
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org