Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25439 - [etcat][PATCH] reformat output to be script friendly
Summary: [etcat][PATCH] reformat output to be script friendly
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-28 11:00 UTC by Stuart Herbert (RETIRED)
Modified: 2005-04-23 07:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against etcat (diff.txt,2.37 KB, patch)
2003-07-28 11:02 UTC, Stuart Herbert (RETIRED)
Details | Diff
Script that uses the modified etcat (genrdepend,2.90 KB, text/plain)
2003-07-28 11:03 UTC, Stuart Herbert (RETIRED)
Details
Shell library that genrdepend relies upon (libsh.sh,819 bytes, text/plain)
2003-07-28 11:03 UTC, Stuart Herbert (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Herbert (RETIRED) gentoo-dev 2003-07-28 11:00:47 UTC
Hi Karltk, 
 
Here's the patch demonstrating the type of output that'd be much friendlier for using in other scripts.  
I've patch etcat -f so that it lists every file, one per line - and nothing else. 
 
To give you an example of how I use it, I've also attached the script I use it in.  Maybe you could turn 
this into a bit of python that does the same, and add it to gentoolkit? 
 
Best regards, 
Stu
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2003-07-28 11:02:18 UTC
Created attachment 15137 [details, diff]
Patch against etcat
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2003-07-28 11:03:02 UTC
Created attachment 15138 [details]
Script that uses the modified etcat
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2003-07-28 11:03:40 UTC
Created attachment 15139 [details]
Shell library that genrdepend relies upon
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2003-10-24 06:19:31 UTC
Any chance of something happening about this?

Thanks,
Stu
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-10-24 07:26:21 UTC
yeah .. well, i've been a bit busy and karltk has refactored alot of the
code in etcat into a seperate gentoolkit.py module. i had a look at this
and some other etcat bugs but haven't had time to go into depth with it.

but i'll try and look into this as soon as i find some time. i notice that
the latest gentoolkit ebuild still has the old etcat code, so i'm not sure
whether the gentoolkit.py refactoring has been completed or release ready
yet.

i wish the gentoolkit src was available on cvsview, but it is currently in
its own module "gentoolkit" at the moment. i've had a brief look at the patch
and it seems fine. if you would like to commit the patch yourself, please
go ahead.

thanks
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2004-02-04 11:00:36 UTC
i'm not sure how relevant this is right now .. but i plan to go thru all my etcat bugs in the near future.
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-02-04 15:00:11 UTC
I've not kept up with the latest changes (as I use a locally-butchered version of etcat daily), but why wouldn't it be relevant any more?

Stu
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2004-02-05 02:41:59 UTC
when i mean relevant, i mean to say that maybe the one in the newest gentoolkit may have fixed it .. i haven't had time to check
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2005-04-23 07:52:01 UTC
old and etcat is obsoleted.