Debugging page importation.
This commit is contained in:
parent
a6e49448fa
commit
ff9fbb92f9
@ -61,11 +61,22 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree withRemote: externalDocLocati
|
|||||||
(self hasBlockUID: snippet uid)
|
(self hasBlockUID: snippet uid)
|
||||||
ifTrue: [ | existingPage |
|
ifTrue: [ | existingPage |
|
||||||
existingPage := self pages
|
existingPage := self pages
|
||||||
detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] ifNone: [ ^ snippet ].
|
detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ]
|
||||||
self importErrorForLocal: existingPage withRemote: externalDocLocation.
|
ifFound: [
|
||||||
^ self ]
|
self importErrorForLocal: existingPage withRemote: externalDocLocation.
|
||||||
ifFalse: [ snippet database: self.
|
^ self
|
||||||
self registerSnippet: snippet ] ].
|
]
|
||||||
|
ifNone: [
|
||||||
|
snippet database: self.
|
||||||
|
self registerSnippet: snippet
|
||||||
|
].
|
||||||
|
|
||||||
|
]
|
||||||
|
ifFalse: [
|
||||||
|
snippet database: self.
|
||||||
|
self registerSnippet: snippet
|
||||||
|
]
|
||||||
|
].
|
||||||
self addPage: page.
|
self addPage: page.
|
||||||
^ page
|
^ page
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user