Bug 168358

Summary: Cannot add a local directory as installation source
Product: [openSUSE] openSUSE 10.2 Reporter: Andras Mantia <amantia>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Blocker    
Priority: P5 - None CC: aj, andreas.hanke, atolboo, balarabay1, dglock, edwards.office, forgotten_bwNirt9brK, gp, gunnarbeyer, hvogel, jsrain, kkaempf, ma, martin.schlander, metricus, mike_wells, mvidner, rastislav.krupansky, suse-beta, ulrich.schran
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Andras Mantia 2006-04-21 14:42:01 UTC
To separate from bug #166287:
I tried to add as a source a directory with RPMs (-devel packages that are
not on the 5 CDs), but I couldn't: "Unable to create installation source from
URL dir:///.... Try again?" 
This was possible at least in 10.0, I'm not sure about the 10.1 betas.

Logs are attached to the other bug report.
Comment 1 Christoph Thiel 2006-04-23 13:32:08 UTC
Klaus, should this be possible?

Andras, please attach YaST2 logs as described in http://en.opensuse.org/Bug_Reporting_FAQ#YaST
Comment 2 Andras Mantia 2006-04-23 15:57:01 UTC
That FAQ seems to be out of date.
- Shift-F8 in the Qt GUI doesn't do anything
- save_y2logs does not exist
- I have a tarball of /var/log/Yast2, but it's 3.5 MB, which might not upload from here (slow upload link). In that case take the log from #166287 and combine with the attached tarball.

I will update to RC2 today anyway, and I will test there as well.
Comment 3 Andras Mantia 2006-04-23 16:45:16 UTC
Created attachment 79595 [details]
y2logs
Comment 5 Christian Boltz 2006-04-23 21:13:50 UTC
*** Bug 168671 has been marked as a duplicate of this bug. ***
Comment 6 Christian Boltz 2006-04-23 21:14:16 UTC
*** Bug 168673 has been marked as a duplicate of this bug. ***
Comment 7 Christian Boltz 2006-04-23 21:15:32 UTC
According to bug 168671 (the duplicate from comment #5), this is still an issue in RC2.
Comment 12 Stanislav Visnovsky 2006-04-26 08:28:20 UTC
*** Bug 162063 has been marked as a duplicate of this bug. ***
Comment 13 Christian Boltz 2006-04-26 23:11:24 UTC
*** Bug 169899 has been marked as a duplicate of this bug. ***
Comment 14 Forgotten User bwNirt9brK 2006-05-13 10:29:02 UTC
This bug persists in SUSE 10.1 GM. Adding self to CC.
Comment 15 Forgotten User bwNirt9brK 2006-05-13 15:02:39 UTC
Workaround:

1. Install first dependencies: rpm-python, libxml2-python, python-urlgrabber -- these come with the CD-images.
2. Download and install createrepo from the noarch packages of 10.1. This does not come with the CD-images. Hence need for download.
3. Do createrepo /dir/to/your/RPMs -- you may need to be root.
4. Now add this directory to your sources as usual. 
5. You get warning of repository not beign signed. Overlook it if you trust the RPMs you downloaded.
6. After this, hitting Finish may take some time. Be patient.
7. Next time you start "Add/remove package" you should see the packages in your desired directory.

But still, YaST should be able to read a directory of RPMs directly. Also please see bug #153344 which I reported.
Comment 16 Saalo Sparkes 2006-05-21 11:25:23 UTC
I went through this process (the bug is still present in 10.1) and although it worked and added the directory, the package search did not bring up the rpms from the directory. Packages I knew where there and worked in 10.0
Comment 17 Metric US 2006-05-22 17:48:48 UTC
I cannot believe that 10.1 was released with this bug still unsolved.
I had reported this bug since b3.
This bug also causes Konqueror to fail when trying to "install package with Yast".
There is practically no GUI way to install an RPM that is not included in a repository of some sort. The ZEN installer appears to work, but it is in no way a replacement to YAST.

Metricus
Comment 18 Michael Gross 2006-05-26 10:15:55 UTC
*** Bug 178993 has been marked as a duplicate of this bug. ***
Comment 19 Christian Boltz 2006-05-26 20:14:35 UTC
*** Bug 179280 has been marked as a duplicate of this bug. ***
Comment 20 Michael Gross 2006-05-29 15:05:52 UTC
*** Bug 179478 has been marked as a duplicate of this bug. ***
Comment 21 Christian Boltz 2006-06-11 11:55:54 UTC
*** Bug 183687 has been marked as a duplicate of this bug. ***
Comment 22 Christian Boltz 2006-06-11 20:16:04 UTC
*** Bug 183714 has been marked as a duplicate of this bug. ***
Comment 23 Rastislav Krupansky 2006-06-14 07:44:10 UTC
Hello
I have only one question.
Do you have an idea or vision when vill be available fix upadte for this bug or bug 183687
I´d like to use 10.1.It has been taking so long

Rasto
 
Comment 24 Klaus Kämpf 2006-06-14 10:00:01 UTC
"rug mount <directory>" adds a local directory as installation repo.
Comment 27 Tambet Ingo 2006-06-14 15:02:46 UTC
It's handled like any other service, query-files is called at startup and refreshes. It doesn't attempt to listen to file system modifications, so after changing the content of the directory, a 'rug refresh' gets it in sync.
Comment 28 Christian Boltz 2006-07-03 20:28:55 UTC
*** Bug 190162 has been marked as a duplicate of this bug. ***
Comment 29 Michael Gross 2006-07-17 08:31:56 UTC
*** Bug 192743 has been marked as a duplicate of this bug. ***
Comment 30 Michael Andres 2006-11-09 13:45:27 UTC
Zypp supports Plaindir sources.

Assign to Ladislav for pkg-bindings/inst_source.ycp. 
Sending details per mail.
Comment 33 Stanislav Visnovsky 2006-11-13 12:46:03 UTC
I would like to have this in. It's high prio community request and a regression from the old packagemanager. Having a feature and just missing
UI to use it is very bad.
Comment 34 Ladislav Slezák 2006-11-13 14:46:19 UTC
OK, submitted in yast2-pkg-bindings-2.14.0 and yast2-packager-2.14.6

There is a new radio button "Package Directory" in the source type selection window.