Summary: | portage.VERSION syntax inconsistent between releases and live tree | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Michał Górny <mgorny> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | Keywords: | InVCS |
Priority: | High | ||
Version: | 2.2 | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=912209 https://bugs.gentoo.org/show_bug.cgi?id=895908 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | make valid version and append _p with unix time if modified relative to HEAD |
Description
Michał Górny
2010-09-19 08:46:34 UTC
Created attachment 247979 [details, diff]
make valid version and append _p with unix time if modified relative to HEAD
Examples:
python -c 'import portage ; print portage.VERSION'
2.2_rc84_p1
# modify some source files
python -c 'import portage ; print portage.VERSION'
2.2_rc84_p1_p1284893343
(In reply to comment #1) > python -c 'import portage ; print portage.VERSION' > 2.2_rc84_p1_p1284893343 Hm, seems a little long. Maybe you could subtract the HEAD timestamp from it? (In reply to comment #2) > Hm, seems a little long. Maybe you could subtract the HEAD timestamp from it? Ok, it's in git now: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=213dce575a3302ea3b24a81382a587533fd665e1 Marking as fixed since this only matters for checkouts. |