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 ...

./repodiff.py -s http://ipkg.us.oracle.com/solaris11/dev/ -d ../../../i386/repo
./repodiff.sh http://ipkg.us.oracle.com/solaris11/dev/ ../../../i386/repo

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
 - 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

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.

Just my 2hal
-- 
        Vlad
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to