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)
|
||||
ifTrue: [ | existingPage |
|
||||
existingPage := self pages
|
||||
detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] ifNone: [ ^ snippet ].
|
||||
self importErrorForLocal: existingPage withRemote: externalDocLocation.
|
||||
^ self ]
|
||||
ifFalse: [ snippet database: self.
|
||||
self registerSnippet: snippet ] ].
|
||||
detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ]
|
||||
ifFound: [
|
||||
self importErrorForLocal: existingPage withRemote: externalDocLocation.
|
||||
^ self
|
||||
]
|
||||
ifNone: [
|
||||
snippet database: self.
|
||||
self registerSnippet: snippet
|
||||
].
|
||||
|
||||
]
|
||||
ifFalse: [
|
||||
snippet database: self.
|
||||
self registerSnippet: snippet
|
||||
]
|
||||
].
|
||||
self addPage: page.
|
||||
^ page
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user