From: Spider <spider@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] CONTENTS file
Date: Sat, 11 Oct 2003 22:16:08 +0200 [thread overview]
Message-ID: <20031011221608.3b4b1911.spider@gentoo.org> (raw)
In-Reply-To: <3F884FE1.80708@technaut.darktalker.net>
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
begin quote
On Sat, 11 Oct 2003 13:45:53 -0500
Andrew Gaffney <agaffney@technaut.darktalker.net> wrote:
> I'm writing a Perl script that verifies file MD5SUMs against what
> portage recorded in
> /var/db/pkg/category/package/CONTENTS at install. I'm wondering what
> would happen in that
> file if some package were to install a file that had a space in the
> name. Currently, a
> line looks like:
>
> obj /usr/libexec/webmin/acl/defaultacl
> a6897506f8609645d3a215988d1a937c 1063945574
>
> This can easily be pulled apart with a regex, but what if it looked
> like this:
>
> obj /usr/libexec/webmin/acl/default acl
> a6897506f8609645d3a215988d1a937c 1063945574
>
> Can this happen?
probably.
I'd suggest starting the regexp from the back. Since the last fields
are always the same, that makes everything before the two last fields
the filename.
//Spider
--
begin .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-10-11 20:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-11 18:45 [gentoo-dev] CONTENTS file Andrew Gaffney
2003-10-11 19:24 ` Markus Nigbur
2003-10-11 19:47 ` [gentoo-dev] " Michael Sterrett -Mr. Bones.-
2003-10-11 20:05 ` [gentoo-dev] " Mike Frysinger
2003-10-11 20:13 ` Andrew Gaffney
2003-10-11 20:16 ` Spider [this message]
2003-10-12 20:04 ` Daniel Steinberger
2003-11-12 22:17 ` Aron Griffis
-- strict thread matches above, loose matches on Subject: below --
2003-10-13 15:37 Daniel Steinberger
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=20031011221608.3b4b1911.spider@gentoo.org \
--to=spider@gentoo.org \
--cc=gentoo-dev@gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox