diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-11-14 22:15:06 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2006-11-14 22:15:06 +0000 |
commit | d6aa197a5f26cad7dd38b19aa6cd017898944f40 (patch) | |
tree | 473707b24efcef6daa7090a395e8ae101ac659d5 | |
parent | 25eefa3fee344829c1201114cd8600da553293cf (diff) |
git: Set PV correctly, update for upstream changes in directory names
-rw-r--r-- | packages/git/git-native_snapshot.bb (renamed from packages/git/git-native.bb) | 2 | ||||
-rw-r--r-- | packages/git/git_snapshot.bb (renamed from packages/git/git.bb) | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/packages/git/git-native.bb b/packages/git/git-native_snapshot.bb index 67ea960819..84e6f96686 100644 --- a/packages/git/git-native.bb +++ b/packages/git/git-native_snapshot.bb @@ -1,4 +1,4 @@ -require git.bb +require git_snapshot.bb inherit native DEPENDS = "expat-native openssl-native curl-native" diff --git a/packages/git/git.bb b/packages/git/git_snapshot.bb index 7d5c2cbc35..443fd299f6 100644 --- a/packages/git/git.bb +++ b/packages/git/git_snapshot.bb @@ -3,11 +3,17 @@ LICENSE = "GPL" DESCRIPTION = "The git revision control system used by the Linux kernel developers" DEPENDS = "openssl curl" -PKGDATE = "${@time.strftime('%Y-%m-%d',time.gmtime())}" +def get_git_pkgdate(d): + import bb + srcdate = bb.data.getVar('SRCDATE', d, 1) + return "-".join([srcdate[0:4], srcdate[4:6], srcdate[6:8]]) + +PKGDATE = "${@get_git_pkgdate(d)}" SRC_URI = "http://www.codemonkey.org.uk/projects/git-snapshots/git/git-${PKGDATE}.tar.gz" +PV = "1.4.3.5+snapshot${PKGDATE}" -S = "${WORKDIR}/git-snapshot-${DATE}" +S = "${WORKDIR}/git-${PKGDATE}" FILES_${PN} += "${datadir}/git-core" |