On 10/16/11 10:47, Vladimir Marek wrote:
Hi Allan,
I've asked a few times for some way to pkgdiff all the packages in two
repos, so I can see what's changed in one of our gate builds, and I've
filed/updated some RFE's for it, but keep finding needs for it now,
so instead of waiting for the pkg team to have cycles, I went ahead
and scratched my own itch.
That's a great idea, sadly it's not the first implementation I know.
There is (Oracle internal only afaik - I'm not author)
/net/onnv-x86-build.india/builds/na210770/pkgdiff/repodiff.py
I tried to compare the two implementations and yours is very slow.
Python one takes about 30 seconds, yours didn't finish in 10 minutes or
so ...
Yes, I think the three paragraphs in my initial e-mail summarized the
slowness of mine pretty well.
I haven't done any deeper comparison. Looking at the shell version, I
would suggest to add
- INT trap, so that you can break it by ctrl+c
Thanks, I'll look into that.
- use function in the form 'myfunc()' instead of 'function myfunc'.
Advantage is that if you add 'set -x' at the top of the script, it is
inherited by the functions
Every other piece of advice I've seen on the two suggests not using the
ancient, deprecated, unportable, bourne shell relic myfunc() form of functions,
and instead using the POSIX-standard function myfunc form, so I'll pass on
that one.
Also what we need is to have the ability to compare our repo to 'SRU7'
for example, so that we will know what should go into IDR.
I certainly planned on using it for comparing against a previous build,
which it should do fine when pointed to the consolidation repo for that
build. Comparing against a full WOS repo for a single build should
also work, just with lots of missing package notices - comparing against
a repo with multiple builds should explode spectacularly.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss