[opensuse] Simple webpin script to get actual URL
Listmates,
One thing that was frustrating ( not maddening, just inefficient ) about
webpin was that it returned the URL for the repository where the rpm is located
as something like:
BS::home:/Lazy_Kent
(example from "webpin monica" search)
The problem is that I can't do anything directly with "BS::home:/Lazy_Kent".
It can't be directly added as a repository without manually changing BS:: to
the actual URL. To automate getting around this problem, I wrote a simple
script to get the actual url from the BS::home:/Lazy_Kent text. I call it bsurl
and I put it in /usr/local/bin (or you can just put it in ~/bin). Just copy the
BS::home:/Lazy_Kent text and paste it as the argument to bsurl. Example:
17:59 alchemy:~> bsurl BS::home:/Lazy_Kent
The URL is:
http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_11.0
To add the repository use:
zypper ar -K
http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_11.0
On Tuesday 14 April 2009 01:08:37 David C. Rankin wrote:
Listmates,
One thing that was frustrating ( not maddening, just inefficient ) about webpin was that it returned the URL for the repository where the rpm is located as something like:
BS::home:/Lazy_Kent
(example from "webpin monica" search)
webpin -u monica - 3.7 [BS::home:/Lazy_Kent] @ http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_11.1 rpm -q webpin webpin-1.0.1-1.3 Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Tuesday 14 April 2009 01:08:37 David C. Rankin wrote:
Listmates,
One thing that was frustrating ( not maddening, just inefficient ) about webpin was that it returned the URL for the repository where the rpm is located as something like:
BS::home:/Lazy_Kent
(example from "webpin monica" search)
webpin -u monica
- 3.7 [BS::home:/Lazy_Kent] @ http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_11.1
rpm -q webpin webpin-1.0.1-1.3
Anders
Naah --- takes all the fun out of it, and no -k option ;-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Anders Johansson
-
David C. Rankin