mirror of
https://github.com/RubyMetric/chsrc
synced 2026-03-05 05:30:41 +08:00
Use chsrc_determine_chgtype()
This commit is contained in:
@@ -128,7 +128,7 @@ os_freebsd_setsrc (char *option)
|
||||
chsrc_overwrite_file (update, "/etc/freebsd-update.conf");
|
||||
*/
|
||||
|
||||
ProgMode_ChgType = ChgType_SemiAuto;
|
||||
chsrc_determine_chgtype (ChgType_SemiAuto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ os_netbsd_setsrc (char *option)
|
||||
char *url = xy_strjoin (5, source.url, arch, "/", version, "/All");
|
||||
chsrc_overwrite_file (url, "/usr/pkg/etc/pkgin/repositories.conf");
|
||||
|
||||
ProgMode_ChgType = ChgType_Untested;
|
||||
chsrc_determine_chgtype (ChgType_Untested);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ os_openbsd_setsrc (char *option)
|
||||
chsrc_backup ("/etc/installurl");
|
||||
chsrc_overwrite_file (source.url, "/etc/installurl");
|
||||
|
||||
ProgMode_ChgType = ChgType_Untested;
|
||||
chsrc_determine_chgtype (ChgType_Untested);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user