Skip to content

Commit 0b99929

Browse files
committed
cleanup: "subtarget" separation
there was a time when target and subtarget were stored sepparated, however it's now stored together. Signed-off-by: Paul Spooren <mail@aparcar.org>
1 parent af9a270 commit 0b99929

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ available devices and more. All responses are in `JSON` format.
298298
- `/api/models?distro=&version=&model_search=<search string>` Get all supported
299299
devices of distro/version that contain the `model_search` string
300300

301-
- `/api/packages_image?distro=&version=&target=&subtarget=&profile=` Get all default
301+
- `/api/packages_image?distro=&version=&target=&profile=` Get all default
302302
packages installed on an image
303303

304304
### Request stats

asu/request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def check_bad_target(self):
5252
self.request["target"] = self.request_json["target"]
5353

5454
# Check if sysupgrade is supported.
55-
# If None is returned the subtarget isn't found
55+
# If None is returned the target isn't found
5656
sysupgrade_supported = self.database.sysupgrade_supported(self.request)
5757
if sysupgrade_supported is None:
5858
self.response_json["error"] = "unknown target {}".format(

asu/utils/updater.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def run(self):
3232
workers.append(worker)
3333

3434
while True:
35-
outdated_subtarget = self.database.get_outdated_target()
36-
if outdated_subtarget:
37-
log.info("found outdated subtarget %s", outdated_subtarget)
38-
self.update_queue.put(outdated_subtarget)
35+
outdated_target = self.database.get_outdated_target()
36+
if outdated_target:
37+
log.info("found outdated target %s", outdated_target)
38+
self.update_queue.put(outdated_target)
3939
else:
4040
time.sleep(5)

0 commit comments

Comments
 (0)