Bug 247718

Summary: rug cannot autodetect type of service (factory)
Product: [openSUSE] openSUSE 10.3 Reporter: Silviu Marin-Caea <silviu_marin-caea>
Component: ZENworksAssignee: E-mail List <zlm-code10-bugs>
Status: RESOLVED WONTFIX QA Contact: Forgotten User YrvzK78Vmi <forgotten_YrvzK78Vmi>
Severity: Minor    
Priority: P5 - None    
Version: Alpha 1   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Silviu Marin-Caea 2007-02-22 06:49:32 UTC
rug sa ftp://ftp.gwdg.de/pub/opensuse/distribution/SL-OSS-factory/inst-source
ERROR: Could not add 'ftp://ftp.gwdg.de/pub/opensuse/distribution/SL-OSS-factory/inst-source': No suitable service types could be found

silviu:~ # rug sa http://download.opensuse.org/distribution/SL-OSS-factory/inst-source
ERROR: Could not add 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-source': No suitable service types could be found

It works if I specify the service type manually.

rug sa --type zypp http://download.opensuse.org/distribution/SL-OSS-factory/inst-source factory

Adding zypp service...
                                                                                                                                      100%

Successfully added service 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-source'
Comment 3 Rashmi Ranjan Mohanty 2007-04-04 09:55:48 UTC
rug/ZMD can autodetect YUM, RCE and ZYPP service types. The criteria for auto-detecting the service type are as follows.

YUM : 
if <service uri>/repodata/repomd.xml file exists, then its YUM service

RCE : 
if <service uri>/serviceinfo.xml file exists, then its RCE service

ZYPP : 
if the service url starts with any of the following
  cd://
  nfs://
  cifs://
  dvd://
  smb://
  file://
  dir://
  hd://
  iso://
  ufs://
Then its a ZYPP service.

The uri given in this bug are either http or ftp which do not meet any of the above criteria. So rug/ZMD is not able to auto-detect the service type.
Comment 5 Stanislav Visnovsky 2007-07-30 19:03:29 UTC
ZMD is not part of openSUSE 10.3