Bug 153344 - Implement following symlinks in Plaindir source
Summary: Implement following symlinks in Plaindir source
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: libzypp (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: Arvin Schnell
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-24 11:01 UTC by Forgotten User bwNirt9brK
Modified: 2007-10-04 15:40 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User bwNirt9brK 2006-02-24 11:01:51 UTC
I download many RPMs from many places and place them into categorized subdirectories of my /arcs directory. Now I have to create a YaST source for each of these directories.

Instead of that I should be able to have a single local directory where I drop symlinks to all the various RPMs I have downloaded and categorized, and YaST should follow all those symlinks to the RPMs referred to.

Currently YaST does not do this. Please implement this very useful feature.

The proper working of this suggestion is dependent on bug 128379, otherwise newer symlinks which I add to the yast-source directory will never be read by YaST.
Comment 1 Michael Gross 2006-02-24 12:06:40 UTC
Maby this can be implemented for 10.2 - I suppose this is not supported right now.
Comment 2 Forgotten User bwNirt9brK 2006-02-24 12:37:37 UTC
I do hope it is implemented in 10.2.

I also note that hard links are followed, while as reported soft links are not.
Comment 4 Duncan Mac-Vicar 2006-08-07 10:39:00 UTC
Which kind of metadata is this? or are you tryng to setup a plain dir of rpms as a source?
Comment 5 Forgotten User bwNirt9brK 2006-08-07 14:30:25 UTC
Basically yes. Except that the plain dir of rpms which I want to create does not contain hardlinks to the RPM files but softlinks only. 

The user would like to organize his downloaded/archive RPMs in different directories, but would like to clump them together into a single installation source.

I hope that answers the question.
Comment 6 Duncan Mac-Vicar 2006-08-07 15:19:57 UTC
My question is. which kind of metadata is it. You have a directory, with symlinks to rpms, but, the metadata is YUM format or what?

Because if it is a normal directory with rpms, it will not work even if they are not symlinks because YaST doesn't support plain directory sources yet (aka extracting the metadata from the files), although rug can do it.
Comment 7 Forgotten User bwNirt9brK 2006-08-08 10:07:49 UTC
Well I did say "basically yes". It is a normal directory with RPMs. There is no metadata file separately, if that is what you mean.

> Because if it is a normal directory with rpms, it will not work even if they
> are not symlinks because YaST doesn't support plain directory sources yet (aka
> extracting the metadata from the files), although rug can do it.

YaST used to support such plain directory sources till SUSE 10.0. See bug 168358. Once that is fixed, this can be implemented. And I thought rug is the background package manager for YaST since 10.1. Anyway, I never used it.
Comment 8 Duncan Mac-Vicar 2006-10-30 14:12:43 UTC
This feature will be there for 10.2, can you help me testing the betas and see if it has the behavior you expect?
Comment 9 Forgotten User bwNirt9brK 2006-10-31 16:00:52 UTC
Much as I would like to, I recently shifted my residence and do not have a net connection at the new location yet, with some problems preventing my getting one soon. I will try, but I am sorry that I am unable to promise.

In the meanwhile, seeing that bug 168358 and bug 128379 (on which this bug depends for full desired effect) are not fixed (or marked as fixed) the desired functionality does not seem to be achieved.
Comment 10 Arvin Schnell 2007-10-04 15:40:45 UTC
Fixed in openSUSE 10.3:

-> ll
tclock-1.45-4.2.i586.rpm -> ../tclock-1.45-4.2.i586.rpm
xanalyser-1.30-6.2.i586.rpm

-> zypper addrepo -t plaindir file:///tmp/local-repo local

-> zypper search -r local "*"
S | Repository | Type    | Name      | Version  | Arch  
--+------------+---------+-----------+----------+-------
  | local      | package | tclock    | 1.45-4.2 | i586  
  | local      | package | xanalyser | 1.30-6.2 | i586