diff options
author | Ajay Garg <ajay@activitycentral.com> | 2012-10-07 04:10:37 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2012-10-07 04:10:37 (GMT) |
commit | 596163d10f5d00719ed1c23b7339dea05a3b209a (patch) | |
tree | 3f02d7ba6e5e410bd7edf1ed63f3f63817e58e9e | |
parent | 939e0bad2ae0e3777f4e42a26f4228c09351d15f (diff) |
sdxo#2400: Strip the first word (%%d) of the build-number in "My Settings" -> "About My Computer"
-rw-r--r-- | rpms/sugar/0160-sdxo-2400-Strip-the-first-word-d-of-the-build-number.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/rpms/sugar/0160-sdxo-2400-Strip-the-first-word-d-of-the-build-number.patch b/rpms/sugar/0160-sdxo-2400-Strip-the-first-word-d-of-the-build-number.patch new file mode 100644 index 0000000..cc34260 --- /dev/null +++ b/rpms/sugar/0160-sdxo-2400-Strip-the-first-word-d-of-the-build-number.patch @@ -0,0 +1,26 @@ +From 5b27e3371d7068d9988a9d118ddb55340c3235b2 Mon Sep 17 00:00:00 2001 +From: Ajay Garg <ajay@activitycentral.com> +Date: Sun, 7 Oct 2012 09:34:42 +0530 +Subject: [PATCH] sdxo#2400: Strip the first word (%%d) of the build-number in "My Settings" -> "About My Computer". +Organization: Sugar Labs Foundation +Signed-off-by: Ajay Garg <ajay@activitycentral.com> +--- + extensions/cpsection/aboutcomputer/model.py | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/extensions/cpsection/aboutcomputer/model.py b/extensions/cpsection/aboutcomputer/model.py +index e9276b9..02b2496 100644 +--- a/extensions/cpsection/aboutcomputer/model.py ++++ b/extensions/cpsection/aboutcomputer/model.py +@@ -108,6 +108,8 @@ def get_build_number(): + build_no = _read_file('/boot/olpc_build') + elif os.path.isfile('/bootpart/olpc_build'): + build_no = _read_file('/bootpart/olpc_build') ++ if build_no is not None: ++ build_no = build_no.partition(' ')[2] + + if build_no is None: + build_no = _read_file('/etc/redhat-release') +-- +1.7.4.4 + |