Fix pkg-stat.

Now repos should support `stat` operation as well.