]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Minor code cleanup.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 30 Apr 2010 23:32:30 +0000 (01:32 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 30 Apr 2010 23:32:30 +0000 (01:32 +0200)
naoki/__init__.py

index ddda5cf066a972c1b98fd64a0e087b9801d2173a..3bf57044118d4279e0735b78c916e612e373ba99 100644 (file)
@@ -343,23 +343,20 @@ Release       : %(release)s
 
        def call_batch_cron(self, args):
                packages = []
-               packages_must = []
                packages_may = []
                for package in backend.parse_package_info(backend.get_package_names()):
                        if not package.built and package.buildable:
-                               packages_must.append(package)
+                               packages.append(package)
                                continue
 
                        # If package was altered since last build
                        if package.last_change >= package.last_build:
-                               packages_must.append(package)
+                               packages.append(package)
                                continue
 
                        if package.buildable:
                                packages_may.append(package)
 
-               packages += packages_must
-
                packages_may = sorted(packages_may, key=lambda p: p.last_build)
 
                while len(packages) < 10 and packages_may: