From: "Dmitry V. Levin" <ldv@altlinux.org>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Gear-sprmimport : Not a valid source rpm package
Date: Sat, 24 Nov 2012 00:43:26 +0400
Message-ID: <20121123204326.GB23817@altlinux.org> (raw)
In-Reply-To: <20121123203609.GR19661@osdn.org.ua>
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
On Fri, Nov 23, 2012 at 10:36:09PM +0200, Michael Shigorin wrote:
> On Fri, Nov 23, 2012 at 09:30:52PM +0400, gBopHuk_alt wrote:
> > > filelist="$(rpm2cpio "$srpm" |cpio --list --quiet )" ||
> > > fatal "$srpm: Not a valid source rpm package"
> > $rpm2cpio ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm |cpio --list
> > --quiet
>
> 1) echo $? непосредственно после этой команды что выдаёт?
> 2) там чуть выше есть ещё несколько проверок через &&.
Поскольку это сторонний srpm, у него может быть другой заголовок,
который не проходит проверку
header="$(od -A n -N 8 -t x1 -- "$srpm")" &&
[ -n "$header" -a -z "${header## ed ab ee db ?? ?? 00 01}" ]
Можете включить отладочный режим и посмотреть:
sh -efux gear-srpmimport lxpanelx-0.5.6-2.src.rpm
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-11-23 20:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-23 12:58 gBopHuk_alt
2012-11-23 17:30 ` gBopHuk_alt
2012-11-23 20:36 ` Michael Shigorin
2012-11-23 20:43 ` Dmitry V. Levin [this message]
2012-11-24 9:12 ` gBopHuk_alt
2012-11-24 10:19 ` Dmitry V. Levin
2012-11-25 14:37 ` gBopHuk_alt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121123204326.GB23817@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel-newbies@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
devel@ where you _can_ ask
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
public-inbox-index devel-newbies
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git