From: Julian Chu <julian_chu@openmoko.com>
To: bitbake-dev@lists.berlios.de
Cc: openembedded-devel@lists.openembedded.org
Subject: A patch of git.py
Date: Tue, 7 Oct 2008 19:36:56 +0800 [thread overview]
Message-ID: <20081007113656.GA22888@walkingice> (raw)
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
Hi,
The attachment is a patch.
Which fix an error of git.py which may cause error when symbolic link inside the directory.
-Ju1ian
[-- Attachment #2: 0001-git.py-Let-prunedir-can-make-a-difference-between.patch --]
[-- Type: text/x-diff, Size: 979 bytes --]
From b6722b83362e246f51a8397a94d21601176bc6d6 Mon Sep 17 00:00:00 2001
From: Julian_Chu <julian_chu@openmoko.com>
Date: Tue, 7 Oct 2008 19:19:34 +0800
Subject: [PATCH] git.py : Let prunedir can make a difference between real dir and symbolic link
---
lib/bb/fetch/git.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py
index 774bd1a..37a84dd 100644
--- a/lib/bb/fetch/git.py
+++ b/lib/bb/fetch/git.py
@@ -34,7 +34,10 @@ def prunedir(topdir):
for name in files:
os.remove(os.path.join(root, name))
for name in dirs:
- os.rmdir(os.path.join(root, name))
+ if os.path.islink(os.path.join(root, name)):
+ os.remove(os.path.join(root, name))
+ else:
+ os.rmdir(os.path.join(root, name))
class Git(Fetch):
"""Class to fetch a module or modules from git repositories"""
--
1.5.5.1
reply other threads:[~2008-10-07 11:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081007113656.GA22888@walkingice \
--to=julian_chu@openmoko.com \
--cc=bitbake-dev@lists.berlios.de \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.