mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-09-20 10:18:00 +03:00
fix build
This commit is contained in:
parent
86cb0b63be
commit
697a33ee1b
@ -195,8 +195,10 @@ updatePackage log updateEnv mergeBaseOutpathsContext = do
|
|||||||
let opDiff = S.difference mergeBaseOutpathSet editedOutpathSet
|
let opDiff = S.difference mergeBaseOutpathSet editedOutpathSet
|
||||||
|
|
||||||
let numPRebuilds = numPackageRebuilds opDiff
|
let numPRebuilds = numPackageRebuilds opDiff
|
||||||
|
log $ "num package rebuilds: " <> (T.pack . show) numPRebuilds <> " > 10"
|
||||||
|
|
||||||
if numPRebuilds > 10 && "buildPythonPackage" `T.isInfixOf` derivationContents
|
if numPRebuilds > 10 && "buildPythonPackage" `T.isInfixOf` derivationContents
|
||||||
then errorExit "Package contained buildPythonPackage and too many package rebuilds " <> numPRebuilds <> " > 10"
|
then errorExit "Package contained buildPythonPackage and too many package rebuilds"
|
||||||
else return ()
|
else return ()
|
||||||
|
|
||||||
eitherToError errorExit (Nix.build attrPath)
|
eitherToError errorExit (Nix.build attrPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user