FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 04-15-2012, 02:17 PM
"Arokux B."
 
Default Mark already installed optional dependencies

On Fri, Apr 6, 2012 at 1:49 AM, Arokux B. <arokux@gmail.com> wrote:
> This patch adds "[installed]" prefix to already installed optional dependency.
>
> Signed-off-by: Arokux arokux@gmail.com
> ---
> *src/pacman/util.c | * 43 +++++++++++++++++++++++++++++--------------
> *1 file changed, 29 insertions(+), 14 deletions(-)
>
> diff --git a/src/pacman/util.c b/src/pacman/util.c
> index a5242ae..d0a049e 100644
> --- a/src/pacman/util.c
> +++ b/src/pacman/util.c
> @@ -1189,19 +1189,40 @@ static int depend_cmp(const void *d1, const void *d2)
> * * * *return ret;
> *}
>
> +alpm_list_t *optdeps_to_strings(alpm_list_t *optdeps)
> +{
> + * * * alpm_list_t *i, *optstrings = NULL;
> + *alpm_db_t *localdb = alpm_get_localdb(config->handle);
> +
> + * * * /* turn optdepends list into a text list */
> + * * * for(i = optdeps; i; i = alpm_list_next(i)) {
> + * * * * * * * alpm_depend_t *optdep = i->data;
> + * * * * * * * char *optdepstring = alpm_dep_compute_string(optdep);
> +
> + * * * * * * * if(alpm_find_satisfier(alpm_db_get_pkgcache(locald b), optdepstring)) {
> + * * * * * * * * * * * char *optdepstring_in;
> + * * * * * * * * * * * pm_asprintf(&optdepstring_in, _("[installed] %s"), optdepstring);
> + * * * * * * * * * * * free(optdepstring);
> +
> + * * * * * * * * * * * optdepstring = optdepstring_in;
> + * * * * * * * * * * * optdepstring_in = NULL;
> + * * * * * * * }
> +
> + * * * * * * * optstrings = alpm_list_add(optstrings, optdepstring);
> + * * * }
> +
> + * * * return optstrings;
> +}
> +
> *void display_new_optdepends(alpm_pkg_t *oldpkg, alpm_pkg_t *newpkg)
> *{
> - * * * alpm_list_t *i, *old, *new, *optdeps, *optstrings = NULL;
> + * * * alpm_list_t *old, *new, *optdeps, *optstrings = NULL;
>
> * * * *old = alpm_pkg_get_optdepends(oldpkg);
> * * * *new = alpm_pkg_get_optdepends(newpkg);
> * * * *optdeps = alpm_list_diff(new, old, depend_cmp);
>
> - * * * /* turn optdepends list into a text list */
> - * * * for(i = optdeps; i; i = alpm_list_next(i)) {
> - * * * * * * * alpm_depend_t *optdep = i->data;
> - * * * * * * * optstrings = alpm_list_add(optstrings, alpm_dep_compute_string(optdep));
> - * * * }
> + * * * optstrings = optdeps_to_strings(optdeps);
>
> * * * *if(optstrings) {
> * * * * * * * *printf(_("New optional dependencies for %s
"), alpm_pkg_get_name(newpkg));
> @@ -1214,15 +1235,9 @@ void display_new_optdepends(alpm_pkg_t *oldpkg,
> alpm_pkg_t *newpkg)
>
> *void display_optdepends(alpm_pkg_t *pkg)
> *{
> - * * * alpm_list_t *i, *optdeps, *optstrings = NULL;
> + * * * alpm_list_t *optstrings = NULL;
>
> - * * * optdeps = alpm_pkg_get_optdepends(pkg);
> -
> - * * * /* turn optdepends list into a text list */
> - * * * for(i = optdeps; i; i = alpm_list_next(i)) {
> - * * * * * * * alpm_depend_t *optdep = i->data;
> - * * * * * * * optstrings = alpm_list_add(optstrings, alpm_dep_compute_string(optdep));
> - * * * }
> + * * * optstrings = optdeps_to_strings(alpm_pkg_get_optdepends(pkg));
>
> * * * *if(optstrings) {
> * * * * * * * *printf(_("Optional dependencies for %s
"), alpm_pkg_get_name(pkg));


Hi guys,

the patch I sent 10 days ago hasn't got any attention. I would be
interested to know why.

Many thanks.


Sun Apr 15 17:30:01 2012
Return-path: <bounce-debian-user=tom=linux-archive.org@lists.debian.org>
Envelope-to: tom@linux-archive.org
Delivery-date: Sun, 15 Apr 2012 17:20:45 +0300
Received: from liszt.debian.org ([82.195.75.100]:42712)
by s2.java-tips.org with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.69)
(envelope-from <bounce-debian-user=tom=linux-archive.org@lists.debian.org>)
id 1SJQJp-0007On-2m
for tom@linux-archive.org; Sun, 15 Apr 2012 17:20:45 +0300
Received: from localhost (localhost [127.0.0.1])
by liszt.debian.org (Postfix) with QMQP
id 27D312D8F0F; Sun, 15 Apr 2012 14:21:17 +0000 (UTC)
Old-Return-Path: <prostakov.oktava@gmail.com>
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on liszt.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-1.0 required=4.0 tests=RCVD_IN_DNSWL_LOW
autolearn=no version=3.2.5
X-Original-To: lists-debian-user@liszt.debian.org
Delivered-To: lists-debian-user@liszt.debian.org
Received: from localhost (localhost [127.0.0.1])
by liszt.debian.org (Postfix) with ESMTP id 7AA8E2D8EE6
for <lists-debian-user@liszt.debian.org>; Sun, 15 Apr 2012 14:05:44 +0000 (UTC)
X-Virus-Scanned: at lists.debian.org with policy bank en-ht
X-Amavis-Spam-Status: No, score=-3 tagged_above=-10000 required=5.3
tests=[BAYES_00=-2, RCVD_IN_DNSWL_LOW=-1] autolearn=no
Received: from liszt.debian.org ([127.0.0.1])
by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525)
with ESMTP id 2ue0EVGtgW5v for <lists-debian-user@liszt.debian.org>;
Sun, 15 Apr 2012 14:05:36 +0000 (UTC)
X-policyd-weight: using cached result; rate:hard: -3.66
Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175])
(using TLSv1 with cipher RC4-SHA (128/128 bits))
(Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified))
by liszt.debian.org (Postfix) with ESMTPS id 684582D17E0
for <debian-user@lists.debian.org>; Sun, 15 Apr 2012 14:05:33 +0000 (UTC)
Received: by lbjn8 with SMTP id n8so27196lbj.6
for <debian-user@lists.debian.org>; Sun, 15 Apr 2012 07:04:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s 120113;
h=message-id:date:from:user-agent:mime-version:to:subject
:content-type:content-transfer-encoding;
bh=rG25H2YDAhIycpeuDZKRBQBYbJgJaHN0zC9nsnhAuCY=;
b=vzHtKAMH7ZufDGmTD1BENzOFKekqrkO3rqtINuKIdMiIcNyO yOhihjinF+Fq0I+18w
NBB60GBb0CpevB1zKRrOsocy2KaIMQDSGLDmI2YBMoRdvrJOpV bIZoY4dFkT5TjbhpJM
r3E6Y/9YIu3Rhx+D3aNKeZma52ocZbu4g82M8hN4iKpCkU/hlXC2VUjFHof1qrOd2w04
rehbORIHe2JGliNxSQ24gWzRtgHpnDtZLb8XzAGaBXZTPv61gl wXbJOszyr/4cJU6UA7
q8L56T/l6bxVZxo7P3YD+8OcPhXqkU/QvPDK41ArdQE5KSZJkwJPxnFvQqq04h8D8lyL
4DJA=Received: by 10.152.105.19 with SMTP id gi19mr7379061lab.11.1334498692495;
Sun, 15 Apr 2012 07:04:52 -0700 (PDT)
Received: from [109.111.2.243] ([109.111.2.243])
by mx.google.com with ESMTPS id sv9sm16127737lab.10.2012.04.15.07.04.50
(version=SSLv3 cipher=OTHER);
Sun, 15 Apr 2012 07:04:51 -0700 (PDT)
Message-ID: <4F8AD581.2090301@gmail.com>
Date: Sun, 15 Apr 2012 18:04:49 +0400
From: =?UTF-8?B?0J/RgNC+0YHRgtCw0LrQvtCyINCQ0LvQtdC60YHQtdC5? <prostakov.oktava@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120402 Thunderbird/11.0.1
MIME-Version: 1.0
To: debian-user@lists.debian.org
Subject: work Debian from usb-hdd
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Rc-Spam: 2008-11-04_01
X-Rc-Virus: 2007-09-13_01
X-Rc-Spam: 2008-11-04_01
Resent-Message-ID: <F0ENzigsWgD.A.vP.dltiPB@liszt>
Resent-From: debian-user@lists.debian.org
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/628363
X-Loop: debian-user@lists.debian.org
List-Id: <debian-user.lists.debian.org>
List-Post: <mailto:debian-user@lists.debian.org>
List-Help: <mailto:debian-user-request@lists.debian.org?subject=help>
List-Subscribe: <mailto:debian-user-request@lists.debian.org?subject=subscribe>
List-Unsubscribe: <mailto:debian-user-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-user-request@lists.debian.org
Resent-Date: Sun, 15 Apr 2012 14:21:17 +0000 (UTC)

Hello dear friends,
I need your help.
Some days ago I want install Debian in USB-HDD. I read
documentation/FAQ and can install Debian with kernel 2.6.32-5 on
USB-HDD. I installed only console version. But can not run it. I reboot
and upload by my USB-HDD - ok
lilo run - ok
but system no work, I see - filesystem no mount, I think problem with
usb-support but no understand how I can repair. Perhaps somebody have
like problem and can help me?
My target is have usb-hdd with linux console, for repair and copy data
from main hdd if they will be broken.

With best regard, Alexey.

P.S. my english no good, please write to my very easy.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/4F8AD581.2090301@gmail.com
 

Thread Tools




All times are GMT. The time now is 11:22 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org