mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
Support new sources format within the lb environment
This commit is contained in:
parent
617b516f1f
commit
9d08d181f0
6 changed files with 34 additions and 29 deletions
|
|
@ -1 +1 @@
|
|||
80145a20564648b3a84cf9233e0da7f0a8ac4e5853512a1552de2931de09d5c0 /usr/bin/checksum-transcriber
|
||||
64978b2b50c5ba1dfb384d2d76fd7c0ddfcf330d75704881f174a3c81e7cc153 /usr/bin/checksum-transcriber
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
ef770a377283258d72595fff9900dc093d8be9d3a1052ddb3eaca0759c29b140 /usr/bin/checksum-transcriber
|
||||
1c3021d8051fefd615edb50907e3015d810f974b5b9461f8f9aa383478620a0d /usr/bin/checksum-transcriber
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
f161bdb859c2ef76138fa20d2503ae70600b426d770e447cbb55e1a292319252 /usr/bin/checksum-transcriber
|
||||
3b43fcfe665d48c7041292bc78b3de0c5e7fe17fab425837bc5c596856d20bf8 /usr/bin/checksum-transcriber
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#define MAX_STRING 4096
|
||||
#define MAX_TOKENS 3
|
||||
#define MAX_TOKENS 8
|
||||
|
||||
char *get_distfiles(char **envp) {
|
||||
char *envvar = "DISTFILES=";
|
||||
|
|
@ -60,12 +60,15 @@ int main(int argc, char **argv, char **envp) {
|
|||
}
|
||||
line = strchr(line, '\n');
|
||||
line[0] = '\0';
|
||||
// Only "file" type of distfile supported at this point
|
||||
require(strcmp(tokens[0], "f") == 0 || strcmp(tokens[0], "file") == 0,
|
||||
"Only support file distfile type at this point");
|
||||
// Get checksum and filename
|
||||
checksum = tokens[1];
|
||||
if (tokens[2] != NULL) {
|
||||
filename = tokens[2];
|
||||
checksum = tokens[2];
|
||||
if (tokens[3] != NULL) {
|
||||
filename = tokens[3];
|
||||
} else {
|
||||
filename = strrchr(tokens[0], '/');
|
||||
filename = strrchr(tokens[1], '/');
|
||||
filename += 1;
|
||||
}
|
||||
// Put it all together
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue