Bug 387148

Summary: Can't refresh the factory repo
Product: [openSUSE] openSUSE 11.0 Reporter: Vincent Untz <vuntz>
Component: PatternsAssignee: E-mail List <bnc-team-java>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Normal    
Priority: P5 - None CC: casualprogrammer, coolo, nadvornik, ro
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: pattern lint tool.

Description Vincent Untz 2008-05-06 11:21:53 UTC
See the commandes below. It'd be nice to at least give a hint to the user on how to fix this. I guess I can remove some files to fix this, but I don't know which ones...

lyon:/home/vuntz # cat /etc/zypp/repos.d/openSUSE-FACTORY\ 11.0.repo 
[openSUSE-FACTORY 11.0]
name=openSUSE-FACTORY 11.0
baseurl=http://download.opensuse.org/distribution/SL-OSS-factory/inst-source
path=/
type=yast2
enabled=1
autorefresh=1
gpgcheck=1
keeppackages=0

lyon:/home/vuntz # zypper refresh -r "openSUSE-FACTORY 11.0"
Repository 'openSUSE-FACTORY 11.0' is up to date.
Building repository 'openSUSE-FACTORY 11.0' cache [done]
Error building the cache database:
repo2solv.sh "/var/cache/zypp/raw/openSUSE-FACTORY 11.0" > "/var/cache/zypp/solv/openSUSE-FACTORY 11.0/solv"
     Bad dependency line: =Prq: #

Skipping repository 'openSUSE-FACTORY 11.0' because of the above error.
Could not refresh the repositories because of errors.
Comment 1 Stephan Kulow 2008-05-06 11:23:50 UTC
pattern bug
Comment 2 Hubert Figuiere 2008-05-06 14:46:04 UTC
*** Bug 387245 has been marked as a duplicate of this bug. ***
Comment 3 Michael Meeks 2008-05-06 15:33:01 UTC
Pattern bug indeed; I guess banshee has:

+Prq

instead of

+Prc

Is there some lint tool to avoid this happening again ? a simple comparison of a few grep | wc -l shows there are 66 ^+Prqs and 67 ^-Prqs in that file.
Comment 4 Stephan Kulow 2008-05-06 15:36:40 UTC
this very brokeness can indeed be handled. I accept patches to the spec file of patterns-openSUSE
Comment 5 Stephan Kulow 2008-05-06 18:02:23 UTC
*** Bug 387332 has been marked as a duplicate of this bug. ***
Comment 6 Stephan Kulow 2008-05-06 18:02:49 UTC
*** Bug 387336 has been marked as a duplicate of this bug. ***
Comment 7 Stephan Kulow 2008-05-06 20:00:05 UTC
please make sure this gets synced out as quickly as possible :)
Comment 8 Benjamin Weber 2008-05-06 20:33:19 UTC
*** Bug 387421 has been marked as a duplicate of this bug. ***
Comment 9 Casual J. Programmer 2008-05-07 07:15:55 UTC
mv /etc/zypp/repos.d/"openSUSE-FACTORY 11.0.repo" /etc/zypp/repos.d/"openSUSE-FACTORY-11.0.repo"

solves it for me.
Comment 12 Michael Meeks 2008-05-07 13:41:56 UTC
Created attachment 213165 [details]
pattern lint tool.

As threatened ;-)

$ ./pattern_lint /usr/src/packages/BUILD/patterns-openSUSE-data/data/*
file /usr/src/packages/BUILD/patterns-openSUSE-data/data/APPARMOR clean
file /usr/src/packages/BUILD/patterns-openSUSE-data/data/APPARMOR-OPT clean
file /usr/src/packages/BUILD/patterns-openSUSE-data/data/BASIS clean
file /usr/src/packages/BUILD/patterns-openSUSE-data/data/CONSOLE clean
...
file /usr/src/packages/BUILD/patterns-openSUSE-data/data/GNOME-Internet clean
file /usr/src/packages/BUILD/patterns-openSUSE-data/data/GNOME-LAPTOP clean
mis-matched tags at /usr/src/packages/BUILD/patterns-openSUSE-data/data/GNOME-Multimedia:13 - 'Prc' expecting 'Prq'

I built it in 'patterns' and added 1 line to the src/Makefile.am sbin_PROGRAMS - that should do the trick I hope [ with a .spec file tweak ].

clearly then each dependant .spec file wants to call it too - but ...

Is that ok ? and/or should I split this out to a new bug ? :-)
Comment 13 Stephan Kulow 2008-05-07 14:27:51 UTC
I guess that's fine
Comment 14 Stephan Kulow 2008-05-08 09:54:27 UTC
calling the lint tool now. THis of course only will show up other problems :)
Comment 15 Magnus Boman 2008-05-08 10:49:35 UTC
*** Bug 388155 has been marked as a duplicate of this bug. ***
Comment 16 Michael Meeks 2008-05-08 10:55:22 UTC
Thanks :-)
Comment 17 Casual J. Programmer 2008-05-10 17:10:14 UTC
This problem had gone until today afternoon. 

zypper ref
Repository 'Packman-openSuSE-11.0' is up to date.
Repository 'Packman-openSuSE-10.3' is up to date.
Repository 'openSuSE-11.0-Update' is up to date.
Repository 'openSuSE-Factory-Debug' is up to date.
Repository 'openSuSE-Factory' is up to date.
Building repository 'openSuSE-Factory' cache [done]
Error building the cache database:
repo2solv.sh "/var/cache/zypp/raw/openSuSE-Factory_1" > "/var/cache/zypp/solv/openSuSE-Factory_1/solv"
     Bad dependency line: =Prq: #

Skipping repository 'openSuSE-Factory' because of the above error.
Repository 'openSuSE-Factory-nonOSS' is up to date.
Repository 'Videolan-openSuSE-11.0' is up to date.
Some of the repositories have not been refreshed because of an error.

Just a hickup or broken fix ?
Comment 18 Stephan Kulow 2008-05-10 19:27:20 UTC
for some reason -90 is still in factory, even -92 was built. Not sure where the old, broken one, comes from. Factory was hotfixed with an editor and again synced out - but in a broken state.
Comment 19 Benjamin Weber 2008-05-11 18:24:52 UTC
*** Bug 389170 has been marked as a duplicate of this bug. ***
Comment 20 Forgotten User OfsFetVrzR 2008-05-11 19:29:12 UTC
The problem still occours while trying to update from oS 11.0 beta 1 or 10.3 (with backported zypper).

Comment 22 Hans Petter Jansson 2008-05-12 20:33:19 UTC
It worked for a couple of hours, but I'm getting a different error now:

* Building repository '11.0-oss' cache
Error building the cache database:
repo2solv.sh "/var/cache/zypp/raw/11.0-oss" > "/var/cache/zypp/11.0-oss.solv"
     Bad dependency line: package:openSUSE-release-live

Skipping repository '11.0-oss' because of the above error.
Some of the repositories have not been refreshed because of an error.
Comment 23 Lars Vogdt 2008-05-13 05:12:34 UTC
comment #22 sounds like a different bug now. :-(

We've a new line in the content file:

 CONFLICTS package:openSUSE-release-live package:openSUSE-release-dvd

looks like YaST needs to be adapted to interpret that line correctly.

Martin: can you have a look, please?
Comment 24 Martin Vidner 2008-05-13 11:40:44 UTC
repo2solv.sh -> zypp
Comment 25 Stephan Kulow 2008-05-13 12:30:03 UTC
different bug! please fork this.
Comment 26 Michael Meeks 2008-05-13 13:23:08 UTC
or of course, we need the lint tool updating so it matches what YaST expects more closely ;-)
Comment 27 Hans Petter Jansson 2008-05-14 03:55:38 UTC
The package:openSUSE-release-live problem went away after I upgraded to a newer zypper by manually downloading and installing the RPMs. Apparently, there's no automatic upgrade path if you have a zypper that's older than a few weeks.
Comment 32 Casual J. Programmer 2008-05-25 09:15:02 UTC
I am not seeing this anymore, also I wonder if "NEED" should have been reset.
Comment 33 Adrian Schröter 2008-07-09 06:15:59 UTC
I dunno what info to provide here, but it looks like we can close this bug anyway.
Comment 34 Michal Vyskocil 2008-07-09 06:51:28 UTC
ok, lets close