git » abk » commit 1291d50

move/type typo.

author
2005-03-02 04:50:52 UTC
committer
2005-03-02 04:50:52 UTC
parent 46a9c7a53c211f59203cd35fcdfb5fc48077934b

move/type typo.
Fix a typo between mode and type caused by careless :s.

abk +2 -2

diff --git a/abk b/abk
index 29b164f..daa6799 100644
--- a/abk
+++ b/abk
@@ -140,11 +140,11 @@ class file_info:
 			self.copy_file_dev(dst)
 		elif self.type == 'f':
 			# we just create fifos
-			os.mkfifo(dst, self.type & 07777)
+			os.mkfifo(dst, self.mode & 07777)
 		elif self.type == 'd':
 			# we just create directories
 			#os.mkdir(dst, self.type & 07777)
-			os.makedirs(dst, self.type & 07777)
+			os.makedirs(dst, self.mode & 07777)
 		else:
 			raise 'Unk type: 0x%x %d' % (self.mode, self.name)