File tree Expand file tree Collapse file tree 3 files changed +0
-26
lines changed Expand file tree Collapse file tree 3 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -1983,7 +1983,6 @@ def add_features(sender, **kwargs):
1983
1983
SCALE_IN_PROTECTION = "scale_in_prtection"
1984
1984
USE_S3_SCOPED_CREDENTIALS_ON_BUILDERS = "use_s3_scoped_credentials_on_builders"
1985
1985
BUILD_FULL_CLEAN = "build_full_clean"
1986
- DONT_CLEAN_BUILD = "dont_clean_build"
1987
1986
BUILD_HEALTHCHECK = "build_healthcheck"
1988
1987
BUILD_NO_ACKS_LATE = "build_no_acks_late"
1989
1988
@@ -2039,12 +2038,6 @@ def add_features(sender, **kwargs):
2039
2038
USE_S3_SCOPED_CREDENTIALS_ON_BUILDERS ,
2040
2039
_ ("Build: Use S3 scoped credentials for uploading build artifacts." ),
2041
2040
),
2042
- (
2043
- DONT_CLEAN_BUILD ,
2044
- _ (
2045
- "Build: Don't clean the build directory. Only for Enterprise users with dedicated builders."
2046
- ),
2047
- ),
2048
2041
(
2049
2042
BUILD_FULL_CLEAN ,
2050
2043
_ ("Build: Clean all build directories to avoid leftovers from other projects." ),
Original file line number Diff line number Diff line change 27
27
28
28
def clean_build (version = None ):
29
29
"""Clean the files used in the build of the given version."""
30
-
31
- if version and version .project .has_feature (
32
- Feature .DONT_CLEAN_BUILD ,
33
- ):
34
- log .info (
35
- "Skipping cleaning build files for project with DONT_CLEAN_BUILD feature." ,
36
- project_slug = version .project .slug ,
37
- version_slug = version .slug ,
38
- )
39
- return
40
-
41
30
if version :
42
31
del_dirs = [
43
32
os .path .join (version .project .doc_path , dir_ , version .slug )
Original file line number Diff line number Diff line change @@ -53,14 +53,6 @@ def update(self):
53
53
code , stdout , stderr = self .run (* cmd .split (), escape_command = False )
54
54
return
55
55
56
- # Check for existing checkout and skip clone if it exists.
57
- from readthedocs .projects .models import Feature
58
-
59
- if self .project .has_feature (Feature .DONT_CLEAN_BUILD ) and os .path .exists (
60
- os .path .join (self .working_dir , ".git" )
61
- ):
62
- return self .fetch ()
63
-
64
56
self .clone ()
65
57
# TODO: We are still using return values in this function that are legacy.
66
58
# This should be either explained or removed.
You can’t perform that action at this time.
0 commit comments