Skip to content

Commit

Permalink
layout: Update for new Ubuntu kernel page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
darktohka committed Jun 23, 2020
1 parent d7c2007 commit d6184c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pkgcollector/PackageCollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ def getFiles(self, releaseLink, releaseType):
# If we've reached MainlineBuilds, then we're done with all architectures.
# If we have a chosen architecture and the file is a .deb package, then it has to be in
# our list of architectures and it must not be an lpae-based build (we don't package those)
if text.startswith('BUILD.LOG.'):
arch = text[len('BUILD.LOG.'):]
if text.endswith('/log'):
arch = text[:text.find('/log')]
continue
elif text.endswith('MainlineBuilds'):
elif text == 'Name':
break
elif not text.endswith('.deb') or not arch:
continue
Expand Down Expand Up @@ -346,4 +346,4 @@ def updateCache(self):

def publishRepository(self):
# If temporary directory doesn't exist, nothing matters
self.pkgList.saveAllDistributions('l')
self.pkgList.saveAllDistributions(['l', 'custom'])
7 changes: 5 additions & 2 deletions pkgcollector/PackageList.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ def addDebToPool(self, filename):

shutil.move(filename, poolFilename)

def saveAllDistributions(self, letter):
def saveAllDistributions(self, letters):
# Save all distributions
self.log('Saving package list...')
releases = self.getAllReleasesInPool(letter)
releases = []

for letter in letters:
releases.extend(self.getAllReleasesInPool(letter))

for distribution in self.distributions.values():
distribution.save(releases)
Expand Down

0 comments on commit d6184c6

Please sign in to comment.