Michal Pryc wrote:
> Ethan Quach wrote:
>
>> Michal,
>>
>> beadmin.py:
>>
>> 447 - I would highly recommend against constructing this path.
>> Use bee.get("root_ds") instead (we will likely implement a better api
>> to get these elements in the future so that apps don't need to know these
>> key names. We won't change the key names of course...)
>>
>
> The problem was to get the date of the creation of BE, I couldn't find
> this through libbe so I need to make this trick of getting date of
> creation snapshot. I the bee.get("root_ds") something introduced after
> nevada 94? I can't get this value (It's always returning None).
>
Sigh. You're right, it wasn't added until build 96, which also added a
"date"
element which is what you're really after. Constructing this path
shouldn't be
done because its private, and it also won't work when we enable this code to
work inside of zones. Perhaps we do the conditional here again, and
*try* to
get the "date" element, and if that fails, do what you have now.
thanks,
-ethan
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss